Saturday, August 10, 2013

Debugging a remote process on Android

Debugging an app on Android is surprisingly painless (in Eclipse): set your breakpoints and click "Debug As". However, it took me some time (and help from a colleague) to find out how to debug remote processes (android:process=":remote" on a service in your AndroidManifest.xml). In order to do that, you have to set your breakpoints as usual, start the app (doesn't matter if it's "Debug As" or "Run As"), go to the DDMS-view and set the remote process as debuggable by selecting the process in the list and clicking the green little bug.