microsoft / vscode-cpptools

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

envFile values not propagated to Debugger #5226

Open Smit-tay opened 4 years ago

Smit-tay commented 4 years ago

Type: Debugger

Describe the bug

Linux - Fedora 31 Linux 5.5.11-200.fc31.x86_64 #1 SMP Mon Mar 23 17:32:43 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Create a file named "test_envFile.env" which contains the following:

UNIQUE_VARIABLE="test1":"test2":"quoted string":unquoted string

after launching - when the debugger stops on entry - issue this in the debug console: "-exec show env"

Then copy all output, paste into your favorite editor, and search for UNIQUE_VARIABLE

RonaldinhoL commented 4 years ago

in my case both "environment" and "envFile" not working .

Smit-tay commented 4 years ago

only environment is fixed in the latest version of the extension. (Version 0.27.0: March 30, 2020)

Apparently, somehow "envFIle" is handled significantly differently than "environment" (go figure).

Smit-tay commented 4 years ago

Please fix. This is killer bug