As an Android developer, I am facing issue with Logca开发者_C百科t integration in Eclipse. Most of the times, it works fine, but I sometimes have to restart Eclipse in order to have those useful log lines back. This occurs especially when I restart the test-dedicated handset. Do you know if there's a way to make it work properly?
Happens to me a lot, best tip i've been given is Window->Open Perspective->Other->DDMS.
Switch to this perspective, select your running instance in the Devices pane and Logcat starts showing output again.
I use adb logcat
through the Windows command prompt. You can get as many lines as you want using that.
The command line version is probably the best way to use logcat.
If you're having problems after restarting your device try highlighting it in the devices view and resetting adb as seen in the following image:
For me what works is to hit the [x] clear button to clear the logcat messages. In my case eclipse hanged because of the large number of logcat messages being displayed.
精彩评论