microsoft / microsoft/vscode-js-debug

Attach to process PickProcess do not work with node 24

Open
#2,385 0 comments 0 reactions 1 assignee View on GitHub

@connor4312 is already working on this.

Since Jul 6, 2026.

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.