Fail to attach debugger #46

Closed
opened 2025-08-09 17:13:07 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @yydmay on 4/30/2021

Hi there,

I am fairly new to Android in VSCode, trying to debug my android app in VSCode, I followed instruction to setup launch file but got this message when press the debug button

Attaching to pid 9843 on device (mydevice id here) [API:26]
Attach failed: A debugger connection to pid 9843 could not be established. JDWP socket read failed. Socket closed.
Ensure any instances of Android Studio are closed and ADB is running.

I've google'd bit but wasn't able to find any solutions. any one has a clue?

*Originally created by @yydmay on 4/30/2021* Hi there, I am fairly new to Android in VSCode, trying to debug my android app in VSCode, I followed instruction to setup launch file but got this message when press the debug button Attaching to pid 9843 on device (mydevice id here) [API:26] Attach failed: A debugger connection to pid 9843 could not be established. JDWP socket read failed. Socket closed. Ensure any instances of Android Studio are closed and ADB is running. I've google'd bit but wasn't able to find any solutions. any one has a clue?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/android-dev-ext#46
No description provided.