microsoft / microsoft/vscode-cpptools

envFile values not propagated to Debugger

Aperta
#5,226 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

bug debugger
Lingua principale
TypeScript
Stelle
6.2k
Fork
1.7k
Merge medio
14h 46m
PR unite (30g)
61

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Riproduci la configurazione di avvio del debugger C++ da launch.json con il Linux envFile e il valore di test_envFile.env mostrato nel report. Usa il comando della console di debug "-exec show env"; l’issue è risolta quando UNIQUE_VARIABLE compare nell’output dell’ambiente del debuggee.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
cpp, typescript, vscode
Ambito
devtools
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
42/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.