Eclipse LogCat - Not Working

22,238

Solution 1

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.

Solution 2

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".

Solution 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.

Solution 4

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

Share:
22,238
KickAss
Author by

KickAss

Updated on May 25, 2020

Comments

  • KickAss
    KickAss about 4 years

    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
    KickAss over 10 years
    Under Devices in the DDMS perspective, I only see my Phone Device, no emulator
  • Rahul Gupta
    Rahul Gupta over 10 years
    So check the phone device. In the logcat, you can see your phone too and maybe you have selected a filter that is why your logcat is empty.
  • KickAss
    KickAss over 10 years
    LogCat filter is fine too, Even the "All Messages" is empty.
  • KickAss
    KickAss over 10 years
    Also after hitting "Clear Log", when I run the app again, LogCat stays blank.
  • Rahul Gupta
    Rahul Gupta over 10 years
    Please post a screenshot of your eclipse screen
  • KickAss
    KickAss over 10 years
    See main post above. Added screen of Eclipse.
  • Rahul Gupta
    Rahul Gupta over 10 years
    What i can say is that you should update your ADT and logcat, then try again. Maybe you are using an older version of logcat because i have never encountered such an issue
  • KickAss
    KickAss over 10 years
    Is it possible I am missing some sdk packages? I uninstalled loads of stuff I didnt think I needed. See EDIT 2 in the main post. Am I missing anything important?
  • Rahul Gupta
    Rahul Gupta over 10 years
    I would suggest that you re-install your eclipse from scratch and only install API 19 or maybe 14 to 19.
  • KickAss
    KickAss over 10 years
    Okay, will do and post back. Thanks for now
  • Yauraw Gadav
    Yauraw Gadav over 10 years
    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.
  • KickAss
    KickAss over 10 years
    I will try the reinstall ADT suggestion first, and if it comes to it, use deprecated version.
  • Onimusha
    Onimusha over 8 years
    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