You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actual:
No environment variables from launch.json (process.env) are set.
Diagnosis:
VSCode needs to escape (quote?) the values when starting a debug target within the context of a terminal (integrated or external). When the environment variables are set, vscode does something like this on launch:
foo=bar&bar
foo2=hello
It should be something like
foo="bar&bar"
foo2="hello"
Otherwise the & is interpreted as a fork operator (for bash at-least). This would enable someone to do something like:
"env": {
"foo": "bar&echo hello world"
}
The text was updated successfully, but these errors were encountered:
weinand
added
debug
Debug viewlet, configurations, breakpoints, adapter issues
bug
Issue identified by VS Code Team member as probable bug
labels
Aug 18, 2017
We use launch.json
env
block for configuration of software (thinknconf
or similar). We found this by a number of things:process.stdout.write
does not get echod to the debug console, so we switched to integratedTerminal.&
Steps to Reproduce:
bash
as your integrated shellnode
type projectF5
) the projectExpected:
process.env.foo === "bar&bar" && process.env.foo2 === "hello"
Actual:
No environment variables from launch.json (process.env) are set.
Diagnosis:
VSCode needs to escape (quote?) the values when starting a debug target within the context of a terminal (integrated or external). When the environment variables are set, vscode does something like this on launch:
foo=bar&bar foo2=hello
It should be something like
Otherwise the
&
is interpreted as a fork operator (forbash
at-least). This would enable someone to do something like:The text was updated successfully, but these errors were encountered: