microsoft / vscode-js-debug

A DAP-compatible JavaScript debugger. Used in VS Code, VS, + more
MIT License
1.67k stars 283 forks source link

NODE_OPTIONS set in extension host process #2010

Closed chrmarti closed 6 months ago

chrmarti commented 6 months ago

I see NODE_OPTIONS set to ' --require "/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/ms-vscode.js-debug/src/bootloader.js"' in the extension host process when debugging an extension. This results in a Node.js environment variables are disabled because this process is invoked by other apps. error when spawning new Node processes using Electron. Similar to https://github.com/microsoft/vscode/issues/204005.

connor4312 commented 6 months ago

This is intended, because setting this option allows debugging child processes spawned by the extension host.

chrmarti commented 6 months ago

Ack, turns out it's only a warning anyway. Closing, thanks.