Logcat 数据未显示在 DDMS Eclipse 的“日志”选项卡中
- 日志选项卡在 DDMS 中可见,我已经使用 Log.v(...) 记录数据已有一周了,没有出现任何问题。
- 如今,日志数据不再显示在日志窗口中。工作了,然后进行了编程更改以跟踪错误,现在日志数据不再显示。
- 已尝试在外部 Android 手机、Android 模拟器上运行该应用程序,但没有任何区别。
- 关闭Eclipse,重新加载,仍然没有任何变化。
- 控制台显示活动,但仅显示活动的启动点。
- 外部电话已设置为调试 - 这可能不是问题,因为我的模拟器也有同样的问题
看起来我无意中错误地设置了某些内容,但不记得更改任何内容:-(
以前有人遇到过这个问题- 看过以前的帖子,但似乎没有一个相关的
,
奥利弗。
- The log tab is visible in DDMS and I have been logging data using Log.v(...) for many a week now without any problems.
- Today, the log data is now longer being displayed in the Log window. Worked, then did a programming change to track a bug and now the log data is no longer showing.
- Have tried running the app on an external Android phone, on the Android Simulator and it makes no difference.
- Have closed down Eclipse, reloaded and still no change.
- The console displays activity but only to the point of starting the activity.
- The external phone is set up for debugging - not that this could be a problem since I have the same problem with the simulator
It looks like I have inadvertantly set something incorrectly but can't remember changing anything :-(
Anyone come across this problem before - have looked at previous posts but none seem relevant.
Regards,
Oliver
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
不久前我也遇到了同样的问题。我正在使用模拟器和设备进行调试。显然,您必须选择 DDMS 视图中列出的您想要查看其日志的设备。我的日志是空白的,因为我期望的日志设备不是所选的设备。
希望有帮助
I had the same problem a while back. I was using the emulator and device for debugging. Apparently you have to select the device listed in the DDMS view whose logs you want to see. My logs were blank because the device that I was expecting logs from was not the one selected.
Hope that helps
尝试过这个:
https://stackoverflow.com/a/9826502/1238317
Tried this:
https://stackoverflow.com/a/9826502/1238317
检查您的 LogCat 窗口以查看是否正在过滤,并确保将调试级别设置为详细。
Check your LogCat window to see if you are filtering and make sure to set the debug level to Verbose.
有可能的原因和解决方案:
如果使用命令行
adb logcat
检查是否看到输出There are possible reasons and solutions:
Check if you see output if you use the command line
adb logcat
只需进入 DDMS 视角并单击左上角的设备名称即可完成,您的日志猫将从 BOOm 开始:P
Just go to DDMS perspective and click on the device's name in upper left corner and done your log cat will Start with a BOOm :P
在 Android Studio 中,我发现它比 Eclipse 更可靠、更直观,我发现这是一个常见问题。对我来说,除了检查代码之外,解决这个问题的方法(运行应用程序时会自动设置设备)是退出并重新启动模拟器或退出 Android Studio 和模拟器并重新打开/重新启动
In Android Studio, which I have found to be much more reliable and intuitive than Eclipse, I found this to be a common issue. For me what solves it (device is automatically set when running your app) besides checking code, is to Quit and restart the emulator or Quit Android Studio and Emulator and reopen/restart