microsoft / microsoft/vscode-cpptools

Cannot evaluate any Debug Console REPL command

Abierto
#6,259 2 comentarios 2 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

debugger
Lenguaje dominante
TypeScript
Estrellas
6.2k
Forks
1.7k
Merge medio
14 h 46 min
PR fusionados (30 d)
61

Descripción

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 <

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza reproduciendo el problema con el archivo helloworld.zip adjunto, su configuración launch.json y el ejemplo del tutorial. Ejecuta el comando de Debug Console cout << "Hello World"; e inspecciona el error -var-create informado junto con la salida de depuración. Se considera terminado cuando los comandos REPL válidos se evalúan correctamente sin ese error.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
cpp
Área
devtools
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.