microsoft / microsoft/vscode-cpptools

Cannot evaluate any Debug Console REPL command

Offen
#6,259 2 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

debugger
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, Ubuntu 20.04 LTS on Windows_NT x64 10.0.18363 WSL2
  • VS Code Version: 1.49.3 (2af051012b66169dde0c4dfae3f5ef48f787ff69)
  • C/C++ Extension Version: v1.0.1
  • Other extensions you installed (and if the issue persists after disabling them): none
  • A clear and concise description of what the bug is.Debug console REPL commands (e.g. cout << "Hello World";) fail with error message -var-create: unable to create variable object. I am able to print out variables by just typing them and pressing enter.

To Reproduce
Please include a code sample and launch.json configuration.
Steps to reproduce the behavior:

  1. I used the tutorial example from cpptools.
  2. Configure launch.json to stop at entry and enter debug mode
  3. Execute command 'cout << "Hello World";"
  4. Observe error

Additional context
If applicable, please include logging by adding "logging": { "engineLogging": true, "trace": true, "traceResponse": true } in your launch.json
Add any other context about the problem here including log or error messages in your Debug Console or Output windows.

I add a zip helloworld.zip with the output, as well as the debug console output. Note that I cannot seem to enable traceResponse, as it causes the build to fail:

> Executing task: /bin/g++ -g extension-output-#5 -o ./extension-output-#5 <

whereas normally it says:

> Executing task: /bin/g++ -g /home/tweyens/test_Cpp/projects/helloworld/projects/helloworld/helloworld.cpp -o /home/tweyens/test_Cpp/projects/helloworld/projects/helloworld/helloworld <

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, das Problem mit der angehängten helloworld.zip, ihrer launch.json-Konfiguration und dem Tutorialbeispiel zu reproduzieren. Führe den Debug Console-Befehl cout << "Hello World"; aus und untersuche den gemeldeten -var-create-Fehler zusammen mit der Debug-Ausgabe. Als abgeschlossen gilt die Aufgabe, wenn gültige REPL-Befehle ohne diesen Fehler erfolgreich ausgewertet werden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
cpp
Bereich
devtools
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.