microsoft / microsoft/vscode-cpptools
Cannot evaluate any Debug Console REPL command
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, 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:
- I used the tutorial example from cpptools.
- Configure
launch.jsonto stop at entry and enter debug mode - Execute command 'cout << "Hello World";"
- 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
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
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