microsoft / microsoft/vscode-js-debug
Attach to process PickProcess do not work with node 24
@connor4312 is already working on this.
Since Jul 6, 2026.
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 373
- Avg merge
- 1d 9m
- Merged PRs (30d)
- 6
Description
Describe the bug
"processId": "${command:PickProcess}" do not work with nodejs 24.
since nodejs 24 main thread is no more call node but MainThread
To Reproduce
1- switch to node 24
2- setup launch.json
{
"type": "node",
"request": "attach",
"name": "Attach by Process ID",
"processId": "${command:PickProcess}"
},
3- start your application
4- in debug extention select "Attach by Process ID" and press ">"
You will not see your application in the list
5- Stop VSCODE
6- edit file .vscode-server/bin//extensions/ms-vscode.js-debug/src/extension.js
7- replace node|iojs → node|iojs|MainThread
8- restart vscode
9- in debug extention select "Attach by Process ID" and press ">"
You will see your application in the list
Log File
VS Code Version: 1.127.0
Additional context
if you do the same in node 20 it will work without patching the debug extention
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.