Wednesday, September 18, 2013

Resolve debug issue in Eclipse for Android application

I have an Android application that I was not able to debug in Eclipse.  I would "Debug As" > "Android Application" but none of my breakpoints would be hit.  If I went to the Debug perspective and launched debug for my application, the application thread would appear briefly and then vanish.

I resolved this problem by using the DDMS perspective.  Once in DDMS, I would start my application on my device.  I then selected my application process and clicked the "Debug selected process" button.