How to debug an android application started from 'adb shell am start -D '?
问题 I need to debug an android application that is already installed on a phone. I am able to start the application in debug mode but I can't connect to the process using JDWP. I have try two different ways that both fail. (see following sections) Command line attempt 1- Start the application [...]sdk\platform-tools>adb -d shell am start -D -n "package/package.SomeActivity" The application starts and a alert display "/!\ Waiting for debugger". 2- Open a JDWP port [...]sdk\platform-tools>adb