Logcat messages disappear after a short time

蓝咒 提交于 2019-12-05 09:34:17

问题


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

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


回答1:


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. Restart Eclipse (as stated here Why logcat is not showing anything?)
  2. if 1 does not work, you may try to increase the logcat message size. From Window > Preferences > Android > LogCat (increase size to more than 5000)

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.



来源:https://stackoverflow.com/questions/15542393/logcat-messages-disappear-after-a-short-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!