I've many times debugged my Java EE code running on Tomcat and JBoss
quite effectivley with Eclipse, but I'm running into a brick wall
debugging an Android app on the Droid. I think I have to debug on the
device and not the AVM because the app interacts with MapView, GPS,
etc. Maybe I need to use the AVM to effectively debug?

What happens is I get NullPointerException or
ArrayOutOfBoundsException in the main thread at something like
ViewRoot.draw(boolean) line: 1373. Of course, by default, the source
won't be found. So I downloaded the source with Git and pointed
Eclipse at it. However, I think I don't have the right source, because
the line is that the exception appears to have been thrown from is not
completely relevant. How can I be sure I'm using the correct source
code for debugging the Droid?

After writing this, I've found that although Eclipse is not displaying
the little green dot when I set a breakpoint in the Andorid code, it
does show up in the breakpoint view and I can step through the code.
Not sure if this helps me. Is it perhaps my ignorance of Dalvik and/or
debugging threaded code?

Anyway, I wish I could see the actual Java statement that caused the
exception. Does anyone have suggestions on how I can effectivley debug
my Android code?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to