logcat需要经常重启才能正常工作
作为一名 Android 开发人员,我面临着 Eclipse 中 Logcat 集成的问题。 大多数时候,它工作得很好,但有时我必须重新启动 Eclipse 才能恢复那些有用的日志行。尤其是当我重新启动测试专用手机时,会发生这种情况。 你知道是否有办法让它正常工作吗?
As an Android developer, I am facing issue with Logcat 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我经常遇到这种情况,我得到的最好的提示是窗口->打开视角->其他->DDMS。
切换到此透视图,在“设备”窗格中选择正在运行的实例,Logcat 再次开始显示输出。
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.
我通过 Windows 命令提示符使用
adb logcat
。您可以使用它获得任意多的行。I use
adb logcat
through the Windows command prompt. You can get as many lines as you want using that.命令行版本可能是使用 logcat 的最佳方式。
The command line version is probably the best way to use logcat.
如果重新启动设备后遇到问题,请尝试在设备视图中突出显示该设备并重置 adb,如下图所示:
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:
对我来说,有效的方法是点击 [x] 清除按钮来清除 logcat 消息。就我而言,由于显示大量 logcat 消息,eclipse 挂起。
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.