microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.41k stars 1.52k forks source link

[Feature Request] Support RunInTerminal Environment Variables #5233

Open thisptr-hub opened 4 years ago

thisptr-hub commented 4 years ago

After updating the extension to 0.27.0 I am unable to debug C++ any more. The debugging works fine in version 0.26.3. I get error: "During startup program exited with code 0xc0000135" My guess is that the updated extension ignores the "environment" setting from launch.json, as update to the Path variable is no longer visible in the terminal command when I invoke the debugging session, it was visible for 0.26.3. I am compiling using MinGW 5.3.0 included in Qt 5.9.6 and using GDB from the same toolchain.

Likely not related to issue #5221, as my problem only applies to the new version

sean-mcmanus commented 4 years ago

Sounds related to https://github.com/microsoft/MIEngine/issues/979 . Are you using an "envFile"? Do you see any errors when you view the Help->Toggle Developer Tools->Console?

WardenGnaw commented 4 years ago

This issue was caused by the fix for https://github.com/microsoft/MIEngine/issues/979.

We were incorrectly setting the debuggees environment variables for the runInTerminal request, so now there is only the default environment variables set.

We will need to support runInTerminal Environmeet Variables