开发者

Eclipse needs to be restarted frequently for logcat to work properly

开发者 https://www.devze.com 2023-03-02 22:47 出处:网络
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 l

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:

Eclipse needs to be restarted frequently for logcat to work properly


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号