Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

How to debug in Android

I finally got my app to work in the Android simulator through trial and error (commenting out all the code and un-commenting one line at a time until it crashed.)

Is there a better way to debug apps in the Android simulator? It'd be really nice if we could see the exact line where the app was failing. Instead, now we just get an "application stopped unexpectedly" dialog and there's no indication of where in the code the problem came from.

— asked March 15th 2010 by Mark Burggraf
  • android
  • debugging
  • simulator

3 Answers

  • Accepted Answer

    I usually run ddms from the Android SDK tools directory. It should attach to the emulator.

    — answered March 15th 2010 by Robert Carlsen
    1 Comment
    • For anyone who finds this thread. DDMS is now deprecated. Use Android Debug Monitor. It's located in /tools/monitor. I just opened a terminal in Studio and typed monitor.

      — commented January 14th 2014 by Michael Stelly
  • Thanks! This is very helpful.

    — answered March 15th 2010 by Mark Burggraf
  • ddms is a good tool, thanks!

    — answered October 17th 2012 by Jay Connelly
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.