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.
3 Answers
-
Accepted Answer
I usually run ddms from the Android SDK tools directory. It should attach to the emulator.
-
Thanks! This is very helpful.
-
ddms is a good tool, thanks!