-
Notifications
You must be signed in to change notification settings - Fork 296
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
Crash in extension development host with "autoAttachChildProcesses": true enabled #873
Comments
Not sure what This extension did spawn a child process and I am guessing that is not what you are trying to debug or attach, right? vscode doc did mention a few ways to attach to the node child process, not knowing what exactly you are trying to debug I am kind of shooting in the dark, but hopefully, their info will be useful to you: https://code.visualstudio.com/docs/nodejs/nodejs-debugging |
I'm trying to debug a VS Code extensions, I have created an MWE which is described in the issues description for reproducing this. Yeah, they don't document the properties of launch configurations that well... |
hmm, I debug our extension all the time without "autoAttachChildProcesses" flag. I did try your use case and yes I can reproduce the crash. But when I turn off the |
I have a different extension (proprietary, unreleased ATM) which launches a node child process which this flag allows to seamlessly debug. |
ok, I dug into this a bit and it seems when you use There is a feature request in vscode to apply a targeted attach (microsoft/vscode-js-debug#1246) that should address the root cause as I am sure you are not interested in debugging others' child processes. You might need to turn off the |
Them crashing at all in such a scenario is a bug in and of itself, need to check if that is reported separately to them. |
@segevfiner does the newly released vscode resolve this issue for you? |
Looks like it. I sure hope it does 🙂 |
Environment
vscode-jest version
: 4.6.0node -v
: v16.15.0npm -v
oryarn --version
: 8.10.0npm ls jest
ornpm ls react-scripts
(if you haven’t ejected): foobar@0.1.0 /Users/segevfiner/junk/vscode-jest-extension-debug-crash/jest└── jest@28.1.0
Prerequisite
npm run test
ornode_modules/.bin/jest
)npx jest
Steps to Reproduce
npm install
in both the repos root directory and jest subdirectory.The trigger is
"autoAttachChildProcesses": true
in the extension's launch configuration.Relevant Debug Info
Not sure, it crashes, haven't found any log.
Expected Behavior
It doesn't cause a crash.
Actual Behavior
The extension development host crashes.
The fastest (and the most fun) way to resolve the issue is to submit a pull-request yourself. If you are interested, feel free to check out the contribution guide, we look forward to seeing your PR...
The text was updated successfully, but these errors were encountered: