Logcat is often out of work

2020-02-13 07:18发布

Logcat is often not working, showing nothing. It's very unlivable. Restarting eclipse everytime it happens is too annoying. Is there anything I can do to solve it? Thanks

6条回答
相关推荐>>
2楼-- · 2020-02-13 07:49

Sometimes the Logcat is empty in Eclipse because the emulator doesn't have the focus. Go to the DDMS perspective and try clicking on the 'emulator' entry in the top-left screen.

Can be even more confusing if there's also a real G1 connected, then you have to choose from which one you want to see the output :)

Hope this helped.

查看更多
Rolldiameter
3楼-- · 2020-02-13 07:56

I just always keep logcat open in my terminal instead of eclipse. Just navigate to your platform-tools folder and type adb logcat

查看更多
走好不送
4楼-- · 2020-02-13 08:09

Even adb logcat shows weird stuff and stops working after a while for no apparent reason: logcat.png. Eclipse restart and Android device restart doesn't help.

however console: adb logcat -c does work.

查看更多
The star\"
5楼-- · 2020-02-13 08:09

Sometimes you selected certain session filter by mistake. By showing the two-pane view of your LogCat you'll be able to check the active filter in the left-pane. I once fixed the empty LogCat by selecting "All messages".

查看更多
Deceive 欺骗
6楼-- · 2020-02-13 08:12

Eclipse only has a limitted buffer to display the logcat. There's a little clear button somewhere on that page, I forget where. Press that, it will clear the logcat and start displaying again.

查看更多
▲ chillily
7楼-- · 2020-02-13 08:13

This also happens to me when I'm running both an avd in the emulator and usb debugging on a physical device. The avd will not give up focus, even though I'm loading the apk onto the device for debugging. I can fix by closing the avd.

查看更多
登录 后发表回答