How to debug signed Android app from Eclipse?

l33t picture l33t · Apr 9, 2012 · Viewed 11.5k times · Source

Android 2.2. I need to debug my signed APK on my Nexus S. How can this be done using Eclipse?

I start the app on my phone and then...?

Answer

Nikolay Elenkov picture Nikolay Elenkov · Apr 9, 2012

Set the debuggable=true in the manifest, export, install and sign the the app. Connect the device via USB, enable USB debugging. Then open the DDMS perspective, select the device and attach to your app's process (you will see the package name listed). If you have a rooted device, you can connect to any process if adb is running as root.