Reputation: 16580
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.
Upvotes: 29
Views: 7813
Reputation: 5659
In newer versions of Android Studio, the (X) Close button in the sidebar no longer exists. If that is your case and you want to detach the debugger from Android Studio, you can tap the "X" in the tab at the top of the debugging window that says "Android Debugger (XXXX)"
Upvotes: 4
Reputation: 16580
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.
Upvotes: 28
Reputation: 2963
On android studio 3.3.1 I also can't find an easy way to disconnect the emulator. I've resorted to the terminal command adb kill-server
(use adb start-server
to start it again)
Upvotes: 0
Reputation: 36007
In case the X (Close) button is not shown because it is collapsed in the toolbar:
OR
OR
Then press Disconnect in the Dialog.
Upvotes: 0
Reputation: 8056
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:
Upvotes: 8