Execute a bash script to set environment variables when starting gdb #7947
                  
                    
                      Gruntfuggly
                    
                  
                
                  started this conversation in
                General
              
            Replies: 2 comments 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
                  
                
            -
| 
         this is quite a useful requirement  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
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
preLauchTaskbut 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