microsoft / microsoft/vscode-js-debug
`disconnect` request does not terminate the adapter process when running standalone
@connor4312 is already working on this.
Since Jul 1, 2026.
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 373
- Avg merge
- 1d 9m
- Merged PRs (30d)
- 6
Description
Describe the bug
When running vscode-js-debug as a standalone DAP adapter (outside of vscode), the adapter remains alive after successfully handling a disconnect request.
According to the Debug Adapter Protocol specification:
The disconnect request asks the debug adapter to disconnect from the debuggee (thus ending the debug session) and then to shut down itself (the debug adapter).
I'm not sure whether this is an intentional choice or a bug.
To Reproduce
Steps to reproduce the behavior:
- Start
vscode-js-debug:node dapDebugServer.js PORT. - Establish a debug session.
- Send
disconnectrequest. - Wait for the successful response.
- The connection is closed but the adapter remains alive.
Additional context
I use my own DAP client.
The same disconnect workflow causes the adapter to exit when using the Java Debug Adapter and debugpy-adapter for Python, which is why I expected the same behavior from vscode-js-debug.
Could you clarify whether this behavior is intentional when running the adapter in standalone ?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.