"autoAttachChildProcesses": true doesn't work in Windows with "type": "extensionHost"
See original GitHub issueDescribe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Create a new VS Code “Extension - TS” project.
- Modify its “launch.json” to include
"autoAttachChildProcesses": true
. - Add launching a long running node child process via
child_process
to the extension. - 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.
Issue Analytics
- State:
- Created a year ago
- Reactions:3
- Comments:11 (10 by maintainers)
Top Results From Across the Web
Remote Development FAQ - Visual Studio Code
The Visual Studio Code Remote Development extension pack allows you to open any folder in a container, on a remote machine (via SSH),...
Read more >Receiving error message 'Extension host terminated ...
When I open developer tools, this is what I find in the console. Running vscode from command prompt with Code.exe --disable-extensions doesn't ......
Read more >Windows Terminal installation | Microsoft Learn
To open any command line application with Windows Terminal, set it as your default terminal application. Open Windows Terminal and go to the ......
Read more >How can I determine file type without an extension on Windows?
This works for me with JPEG, TIFF, GIF and PDF files. However there are many more file types out there. Is it possible...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll try to create one once I have access to a PC where I’m sure this reproduces.
Indeed. But there’s no a whole lot we can do about that, as far as I know.