microsoft / microsoft/vscode-cpptools
envFile values not propagated to Debugger
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 6.2k
- Forks
- 1.7k
- Ø Merge
- 14 Std. 46 Min.
- Gemergte PRs (30 T.)
- 61
Beschreibung
Type: Debugger
Describe the bug
- OS and Version:
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
- VS Code Version:
Version: 1.43.2
Commit: 0ba0ca52957102ca3527cf479571617f0de6ed50
Date: 2020-03-24T07:52:11.516Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 5.5.11-200.fc31.x86_64
- C/C++ Extension Version:
C/C++ for Visual Studio Code Change Log
Version 0.27.0-insiders5: March 26, 2019
- Other extensions you installed (and if the issue persists after disabling them):
N/A
- A clear and concise description of what the bug is:
envFile is not propogated to the debugee.
This can be demonstrated via the following launch.json entry:
{ "name": "(Debug) Test envFile", "type": "cppdbg", "request": "launch", // any debuggable application will suffice, we don't really debug it "program": "${workspaceFolder}/build/test", // because we stop on entry "stopAtEntry": true, "linux": { "internalConsoleOptions": "openOnSessionStart", "MIMode": "gdb", "envFile": "/home/jack/test_envFile.env", "setupCommands": [ { "description": "Enable pretty-printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": true }, ], }, "windows": { //"envFile": "C:\PATH_TO\test_envFile.env" }, "osx": { // Does anybody seriously develop under osx ? }, "externalConsole": false, },
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
-
Expected result:
UNIQUE_VARIABLE is present in the environment -
Actual result:
UNIQUE_VARIABLE is NOT present in the environment
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Reproduziere die C++-Debugger-Startkonfiguration aus launch.json mit dem Linux envFile und dem im Bericht gezeigten Wert von test_envFile.env. Verwende den Debug-Konsolenbefehl "-exec show env"; das Issue ist behoben, wenn UNIQUE_VARIABLE in der Umgebungsausgabe des Debuggees erscheint.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- cpp, typescript, vscode
- Bereich
- devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100