microsoft / microsoft/vscode-cpptools

Cannot evaluate any Debug Console REPL command

Aperta
#6,259 2 commenti 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

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, 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 <

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

Inizia riproducendo il problema con il file helloworld.zip allegato, la relativa configurazione launch.json e l’esempio del tutorial. Esegui il comando di Debug Console cout << "Hello World"; e analizza l’errore -var-create segnalato insieme all’output di debug. Il lavoro è completato quando i comandi REPL validi vengono valutati correttamente senza quell’errore.

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

Valutazione

Stack tecnologico
cpp
Ambito
devtools
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.