clamp
clamp

Reputation: 34006

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 everything before.

this usually happens after 30mins of work but i cant find a concrete way to repro it.

any hints? thanks!

Upvotes: 7

Views: 1751

Answers (2)

Josh Clemm
Josh Clemm

Reputation: 2966

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.

Upvotes: 1

Falmarri
Falmarri

Reputation: 48559

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/

Upvotes: 16

Related Questions