Skip to content

Attach to process PickProcess do not work with node 24 #2385

Description

@SBKila

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

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bug

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions