android LogCat只输出最后一行
有时,当我在 Eclipse 中处理 Android 时,logcat 输出似乎只是输出最后一行消息并丢弃之前的所有内容。
这通常发生在工作 30 分钟后,但我找不到具体的方法来重现它。
有什么提示吗?谢谢!
sometimes when i work on android in eclipse the logcat output just seems to output the last line of messages and discards everything before.
this usually happens after 30mins of work but i cant find a concrete way to repro it.
any hints? thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
eclipse DDMS 缓冲区过小。您可以单击清除日志按钮,它将再次开始显示日志。我不确定是否有办法增加缓冲区。我总是查看终端中的 logcat。这是一个非常好的 python 脚本,可以为输出添加颜色。
http:// jsharkey.org/blog/2009/04/22/modifying-the-android-logcat-stream-for-full-color-debugging/
The eclipse DDMS buffer is unnecessarily small. You can click the clear log button and it will start showing the log again. I'm not sure if there's a way to increase the buffer or not. I always look at the logcat in the terminal. Here's a really good python script that adds color to the output.
http://jsharkey.org/blog/2009/04/22/modifying-the-android-logcat-stream-for-full-color-debugging/
有时您的设备在 DDMS 中未被选中。下次遇到此问题时,请在 Eclipse 中打开 DDMS 透视图,然后在设备窗口中重新单击您的设备。
这通常对我有用。
Sometimes your device becomes unselected in DDMS. Next time you have this problem, open the DDMS perspective in Eclipse and re-click your device in the devices window.
That usually does the trick for me.