UPDATE The supposed duplicate is a question on being stucking in \"Waiting For Debugger\" when executing Run, while this
Restarting Android Studio fix the issue for me.
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)
Both of my dev machines have JDK 8 installed, the debugging function is restored once JDK 7.0.71 was installed and JAVA_HOME environmental variable was set to point to the new JDK.
Guess there's some compatibility issue between Android Studio + ADB + JDK8 (Eclipse + ADB + JDK8 works fine).
When the Device displays the message go to Run->Attach debbuger, then select a debbuger. it'll start the activity.
Sometime it's due to the fact that in the build.gradle configuration you have to set the node:
debug {
debuggable true
}
Change it back to false when you have to prepare the signed apk.
Regards