Execute a bash script to set environment variables when starting gdb #7947
Gruntfuggly
started this conversation in
General
Replies: 1 comment 1 reply
-
I know you can set the environment variables in a command environment and then launch VS Code from there and VS Code will inherit those variables, which is the only way cl.exe compilation from VS Code is possible (unless we added some code to update the environment). You may be able to write an extension that updates the environment and/or create a PR that we could use too -- we're tracking that with #5271 . |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to use a script to set a bunch of environment variables so I can share my setup when starting my application normally, or when debugging.
Does anybody know if this is possible? I've tried using
preLauchTask
but this seems to just run the task in a separate context so the variables are undefined when it runs the application.Beta Was this translation helpful? Give feedback.
All reactions