In Android Studio, how do you detach the debugger once it's connected and debugging a running app?
In Eclipse, the icon looked like this .
I've been disconnecting the USB cable but that seems like a brute method.
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.
The answer is the Close button. As of Android Studio v3.4 it's a red square block icon (previously was a red X).
It turns out I couldn't see it because it was hidden under the more >> icon.
I'm writing this assuming that Android Studio uses the same convention as IntelliJ IDEA.
Click "close" (the button with the red ✕ in the debug panel):
You will be prompted. Choose whether to disconnect and/or terminate:
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