Logcat 数据未显示在 DDMS Eclipse 的“日志”选项卡中

发布于 2024-10-31 14:15:06 字数 397 浏览 11 评论 0原文

  1. 日志选项卡在 DDMS 中可见,我已经使用 Log.v(...) 记录数据已有一周了,没有出现任何问题。
  2. 如今,日志数据不再显示在日志窗口中。工作了,然后进行了编程更改以跟踪错误,现在日志数据不再显示。
  3. 已尝试在外部 Android 手机、Android 模拟器上运行该应用程序,但没有任何区别。
  4. 关闭Eclipse,重新加载,仍然没有任何变化。
  5. 控制台显示活动,但仅显示活动的启动点。
  6. 外部电话已设置为调试 - 这可能不是问题,因为我的模拟器也有同样的问题

看起来我无意中错误地设置了某些内容,但不记得更改任何内容:-(

以前有人遇到过这个问题- 看过以前的帖子,但似乎没有一个相关的

奥利弗。

  1. The log tab is visible in DDMS and I have been logging data using Log.v(...) for many a week now without any problems.
  2. 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.
  3. Have tried running the app on an external Android phone, on the Android Simulator and it makes no difference.
  4. Have closed down Eclipse, reloaded and still no change.
  5. The console displays activity but only to the point of starting the activity.
  6. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

仅此而已 2024-11-07 14:15:06

不久前我也遇到了同样的问题。我正在使用模拟器和设备进行调试。显然,您必须选择 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

桃气十足 2024-11-07 14:15:06

尝试过这个:
https://stackoverflow.com/a/9826502/1238317

检查您的 logcat 窗口 - 右上角的“暂停”按钮 || (暂停
接收新的 logcat 消息)

点击几下+最终重新启动 Eclipse(通常适用于我的情况)

Tried this:
https://stackoverflow.com/a/9826502/1238317

Check in your logcat window - TOP RIGHT corner PAUSE button || (Pause
receiving new logcat messages)

Few clicks + eventually restart eclipse (usually works in my case)

粉红×色少女 2024-11-07 14:15:06

检查您的 LogCat 窗口以查看是否正在过滤,并确保将调试级别设置为详细。

Check your LogCat window to see if you are filtering and make sure to set the debug level to Verbose.

征﹌骨岁月お 2024-11-07 14:15:06

有可能的原因和解决方案:

  • LogCat 缓存中可能有太多内容,请清除日志并查看是否解决了问题
  • 您可能需要在设备视图中选择设备(即使已选择,请尝试单击它)
  • adb 不再正常工作,尝试终止并再次启动它

如果使用命令行 adb logcat 检查是否看到输出

There are possible reasons and solutions:

  • LogCat might have to much in cache, clear the log and see if it fixed the issue
  • You might need to select the device in the device view (even if it is already selected, try to click on it)
  • adb is not correctly working anymore, try to kill and start it again

Check if you see output if you use the command line adb logcat

活雷疯 2024-11-07 14:15:06

只需进入 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

水溶 2024-11-07 14:15:06

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文