question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
segevfinercommented, Aug 31, 2022

I’ll try to create one once I have access to a PC where I’m sure this reproduces.

0reactions
connor4312commented, Dec 1, 2022

Indeed. But there’s no a whole lot we can do about that, as far as I know.

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found