After updating to Android Studio 2.0 my debugger stopped working. When I try to run my app as debug I get stuck waiting for debugger. I can still run app normally.
So there are tons of post on this issue, I've tried everything I could find:
If it is stuck waiting for a debugger means it is not attached to the app. You have to manually attach by clicking on Attach Debugger to Android process. It is on the right side of the run icon.
This setting allows the execution of an app to be paused until a debugger is attached to it, upon the launch of the app. The app to debug must first be selected using the Debug app option.
Okay so my application was using android:process=":background"
under the application tag. So now with Android Studio 2.0 I had to click "Attach debugger to Android Process" and select the :background process.
This has not been an issue in the past.
If a single activity uses another process then the debugger will also hang at that activity until the debugger is attached to that process (attaching is done manually).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With