Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging with Android Studio stuck at "Waiting For Debugger" forever

People also ask

What is waiting for debugger?

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.

What is JDWP in Android?

Here, we will be using the Java Debug Wire Protocol (jdwp), according to the Oracle documents, jdwp is the protocol used for communication between a debugger and the Java Virtual Machine which it debugs, jdwp allows the debugger to either work in a different process in the same computer or on a remote computer.

What does Android Debuggable do?

debuggable ). The debuggable flag in the app manifest tells the VM that the app is under development, and connections from debuggers should be allowed whether or not the app is running on a production device.


Just use this command to disable it. adb shell am clear-debug-app


On some machines/projects the debugger do not attach automatically so you need to attach it manually (studio menu -> Run -> Attach debugger to Android process)


Restarting Testing device fix the issue for me.


Restarting Android Studio fix the issue for me.