9

This is the most frustrating thing ever, LogCat keeps deactivating/disconnecting. After running eclipse, LogCat logs for first run and after that, it goes Blank. I have to restart Eclipse to get it running again, and then same thing happens again. What is matter with it? It used to work fine. I can't recall changes I've made to undo what I (might) have done.

EDIT - Screen of Eclipse as requested.

enter image description here

EDIT 2 - Screen of currently installed SDK packages

enter image description here

KickAss
  • 4,210
  • 8
  • 33
  • 41

7 Answers7

24

If the LogCat is empty, the emulator doesn't have the focus. Go to the DDMS perspective and try clicking on the 'emulator' entry in the Devices panel (top-left screen).

Same thing with a device. You just have to click on the entry representing that device and the log messages comes.

Rahul Gupta
  • 5,275
  • 8
  • 35
  • 66
3

Most of the time Rahuls method would work, but sometimes even that doesn't work in that case, Kill the ADB and restart the eclipse.

Community
  • 1
  • 1
Yauraw Gadav
  • 1,706
  • 1
  • 18
  • 39
  • It happens to me also sometimes, why don't you try to run the deprecated logcat from windows-> preference -> logcat again before closing the logcat, let me know if it works. also try to reconnect your phone through usb again. – Yauraw Gadav Dec 29 '13 at 18:47
  • I will try the reinstall ADT suggestion first, and if it comes to it, use deprecated version. – KickAss Dec 29 '13 at 18:47
3

I believe this other post with the same problem will answer this:

https://stackoverflow.com/a/11967853/241014

Essentially, set the log's buffer to a higher value by going in Eclipse to Window > Preferences > Android > LogCat. Set the "Maximum number of logcat messages to buffer" to something higher than the default of 5,000.

enter image description here

Community
  • 1
  • 1
Peter
  • 423
  • 5
  • 15
3

For Eclipse only when LogCat isn't working:

1 - Open Perspective "DDMS".
2 - On the left side, click on the device you want to monitor.
3 - Change Perspective back to "JAVA".

Pedro Lobito
  • 94,083
  • 31
  • 258
  • 268
  • 1
    How on God's green Earth is a person meant to work that out? Bravo Pedro. This fixed it instantly. `Perspective` is in the `Window` menu @ newbies. Thanks again – Onimusha Oct 04 '15 at 01:12
0

In case if you are using cynogenmod in your mobile, try this:

In your device, open "/system/etc/init.d/" folder If there are many files, try opening each file and find for this line:

rm /dev/log/main

Now, comment this line like this: # rm /dev/log/main

save the file and reboot.

Jaswanth Kumar
  • 3,531
  • 3
  • 23
  • 26
0

If you close LogCat and re-open it it will display the information.

Glenn
  • 79
  • 1
  • 10
0

Although this question has been asked long before, I am answering for others who might stumble upon this trouble.

In Mars, eclipse 4.5 and linux using GTK 3, if Android Logcat display is missing, add the following in eclipse.ini before "--launcher.appendVmargs".

--launcher.GTK_version
2

May also refer these posts.
Logcat show invisible messages in Eclipse Mars
Eclipse GUI broken

Community
  • 1
  • 1
sunnyboy
  • 43
  • 5