Logcat消息在短时间内消失 [英] Logcat messages disappear after a short time

查看:116
本文介绍了Logcat消息在短时间内消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时eclipse logcat消息在关闭应用程序很短时间后就会消失。 (大多数不是那么短。)如何使它永远不会自动消失?

Sometimes eclipse logcat messages disappear after closing the app for a short time. (Mostly not so short.) How to make it never disappear automatically?

编辑:我的设备仍然连接。在下次发布之前,如何将其设置为显示日志?

My device is still attached. And how to set it to show log even after device disattach and clear just before next launch?

推荐答案

这也正在发生。设备已连接。所以所有的内部动作都被记录下来,并且错误消息很快消失。您应该尝试以下(对我来说)

this is also happening with me. The device is attached. And so all the internal actions are getting logged and the error message disappears very quickly. You should try the following (it worked for me)


  1. 重新启动Eclipse(如下所述为什么logcat没有显示任何内容?

  2. 如果1不起作用,你可以尝试增加logcat消息大小。从窗口>首选项> Android> LogCat(将大小增加到5000以上)

首先为我工作。通过这种方式,每次从eclipse部署应用程序时,您都不需要分离设备。关于另一个问题 - 您可以随时从[清除日志]按钮清除现有日志。

First one worked for me. In this way also you need not to detach the device everytime you deploy the app from eclipse. Regarding, the other question - you can always clear the existing log from [Clear log] button.

这篇关于Logcat消息在短时间内消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆