android LogCat only outputting last line
sometimes when i work on android in eclipse the logcat output just seems to output the last line of messages and discards everyt开发者_开发知识库hing before.
this usually happens after 30mins of work but i cant find a concrete way to repro it.
any hints? thanks!
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/
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.
精彩评论