-
Notifications
You must be signed in to change notification settings - Fork 28.3k
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
CLI DEBUG NodeJS: environment variables added in the .env file are concatenated during debugging (since 1. #193551
Comments
It works (v 1.82.2) when I remove "envFile": "${workspaceFolder}/.env" Is there any bug ? |
Kk |
Fixed in microsoft/vscode-js-debug#1832 |
@connor4312 Version: 1.84.0-insider However I can still see |
I'm not able to reproduce that @DonJayamanne. Can you please collect a log file? /jsDebugLogs |
Please collect trace logs using the following instructions:
|
It appears you are still using js-debug stable. Please follow the steps here to enable the nightly extension: https://github.com/microsoft/vscode-js-debug#nightly-extension The version will also be bumped in tomorrow's Insiders Closing for verification. |
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
{
"name": "Node: test:debug",
"port": 9229,
"request": "attach",
"skipFiles": ["<node_internals>/**"],
"type": "node",
"envFile": "${workspaceFolder}/.env"
},
FOO_BAR=fooBar
node_modules/env-cmd/bin/env-cmd.js node_modules/mocha/bin/mocha.js -c --exit --recursive test/foobar.spec.js --inspect-brk=localhost:9229
expect: process.env.FOO_BAR=fooBar
actual: process.env.FOO_BAR=fooBarfooBar
But It works fine when I run debuging from vscode, since env variables will be read from bash_profile
The text was updated successfully, but these errors were encountered: