-
Notifications
You must be signed in to change notification settings - Fork 30.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VS Code attach to shared process does not work with node2 type #14434
Comments
How do you configure the shared process launch to use node2? Is it an Electron renderer process? If so it won't work because of microsoft/vscode-node-debug2#4. |
@roblourens It is not a renderer process.. It is a node process. I just changed type from |
In the launch config though? That's an attach config, so where does it get started in debug mode? |
Oh right node-debug can put running processes into debug mode, but node2 can't. microsoft/vscode-node-debug2#15 - so, can't support this unless you can get it to start up in debug mode somehow. |
@roblourens I suspect that the 'code.sh' script configures VS Code to launch the shared process with '--debug'. This prevents node-debug2 from connecting successfully because it needs the '--inspect' flag. The nodejs/node#8464 approach is not used here. |
Oh I see this - https://github.com/Microsoft/vscode/blob/master/src/vs/code/node/sharedProcess.ts#L35 but, there's no way to know ahead of time whether someone will want to attach with node or node2. Maybe at some point we want to switch it to |
The shared process runs on Electron's node. Does this already support '--inspect'? |
I guess I'm not sure whether it will have the same problem as forking a renderer process with --inspect. It's not possible to use both though, you can only pick one. |
Testing #14341
Steps to Reproduce:
node2
typeThe text was updated successfully, but these errors were encountered: