Skip to content

"autoAttachChildProcesses": true doesn't work in Windows with "type": "extensionHost" #1374

@segevfiner

Description

@segevfiner

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new VS Code "Extension - TS" project.
  2. Modify its "launch.json" to include "autoAttachChildProcesses": true.
  3. Add launching a long running node child process via child_process to the extension.
  4. The child process won't be debugged. In fact, any node child process started by the VS Code Extension Development Host won't be debugged.

Such process are debugged correctly when I do the same in macOS 12.5.1, but doesn't work in either Windows 10 or 11.

Log File

vscode-debugadapter-e946278c.json.gz

VS Code Version: 1.70.2

Additional context
We are using this flag to be able to debug a node server that we spawn from our extension, this also applies to LSP, debug adapters that are implemented in node so that you are able to easily debug them.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions