Eclipse LogCat - Not Working
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.
![KickAss](https://i.stack.imgur.com/ffd2s.jpg?s=256&g=1)
KickAss
Updated on May 25, 2020Comments
-
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.
EDIT 2 - Screen of currently installed SDK packages
-
KickAss over 10 yearsUnder Devices in the DDMS perspective, I only see my Phone Device, no emulator
-
Rahul Gupta over 10 yearsSo 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 over 10 yearsLogCat filter is fine too, Even the "All Messages" is empty.
-
KickAss over 10 yearsAlso after hitting "Clear Log", when I run the app again, LogCat stays blank.
-
Rahul Gupta over 10 yearsPlease post a screenshot of your eclipse screen
-
KickAss over 10 yearsSee main post above. Added screen of Eclipse.
-
Rahul Gupta over 10 yearsWhat 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 over 10 yearsIs 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 over 10 yearsI would suggest that you re-install your eclipse from scratch and only install API 19 or maybe 14 to 19.
-
KickAss over 10 yearsOkay, will do and post back. Thanks for now
-
Yauraw Gadav over 10 yearsIt 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 over 10 yearsI will try the reinstall ADT suggestion first, and if it comes to it, use deprecated version.
-
Onimusha over 8 yearsHow on God's green Earth is a person meant to work that out? Bravo Pedro. This fixed it instantly.
Perspective
is in theWindow
menu @ newbies. Thanks again