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
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|MainThread8- 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