android – Logcat messages disappear after a short time-ThrowExceptions

Exception or error:

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?

How to solve:

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.

Leave a Reply

Your email address will not be published. Required fields are marked *