0

I use IntelliJ IDEA to write Android apps, and use the DDMS Windows application to view the Android logs (separate from the IDE). It works fine, but after a seemingly random period of time, the logs vanish, except for one line of log, which gets overwritten with incoming logs. I have to shut it down and restart it, which combined with the delays of deploying an app to a device over ADB to debug and test is pretty tiresome.

Is this a known issue with DDMS? Is there anything I can do to make it work consistently without breaking itself?

Are there any other Android log viewing applications for Windows that work better? I'm not very fond of the IntelliJ IDEA one. My favourite is actually CatLog on Android itself, but on a small-screen device it's not a great experience.

Ollie C
  • 28,313
  • 34
  • 134
  • 217
  • 2
    I've found that pressing the `clear log` button also temporarily fixes the issue without having to restart ddms. – dave.c Feb 10 '11 at 13:52
  • Yes, me too, though it seems random whether it fixes it or not. My thery is that DDMS has a buffer that fills up, and once full it fails, as it seems since my current app had more logging added, DDMS fails more often. – Ollie C Feb 10 '11 at 13:55
  • there are a few suggestions in [this thread](http://www.anddev.org/sdk-adt-emulator-problems-f16/logcat-overflow-t5955.html), I've not tried any though. – dave.c Feb 10 '11 at 15:10

2 Answers2

1

It's not about the time, but number of lines being recorded. As Dave C said in the comment, just clear the log and it will be fine

Cameron
  • 3,098
  • 1
  • 22
  • 40
  • Clearing the log doesn't fix it. I clear it regularly, but it still fails. How can I extend the size of the log buffer? – Ollie C Feb 10 '11 at 14:23
0

Have you tried looking at "Why doesn't LogCat show anything in my Android?"? The top voted answer may solve your problem

Community
  • 1
  • 1
f20k
  • 3,106
  • 3
  • 23
  • 32
  • 'Fraid not. The problem isn't that I get no log output, but that after a while it stops scrolling down the screen, all appearing on one line. Clicking on the device in DDMS doesn't often fix it, the solution is a tedious restart – Ollie C Feb 10 '11 at 19:09