我尝试使用 Logcat
调试我的 Android 主屏幕小部件,但由于某些原因,并非所有消息都显示在日志中,这是为什么?
有时我可以看到系统 Intent ,有时我的 Log.d()
字符串并未全部显示在日志中。
我在 Eclipse 中使用标准的 Logcat
View ,Logcat
很冗长而且我没有任何过滤器。
编辑: 也许我的问题不清楚。 Logcat 在其“控制台”中显示内容,只是某些条目似乎丢失了。例如系统Intent和我自己的(我创建的)不显示或全部不显示是否正常?
最佳答案
我认为它是 this 的副本. 来自 ddewaele 的回答,你试过了吗?
When using Eclipse, in the DDMS perspective, make sure the correct device (propably emulator-xxxx) is selected and highlighted. Only then will you get the logcat output in the logcat view.
Also, the Android plugin is a bit quircky, and sometimes only shows the last line in the logcat view. If this happens, try to clear the log. After that, you should get all the log entries again (works for me anyway).
关于android - 为什么 Logcat 不显示所有系统消息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8894824/