microsoft / microsoft/vscode-cpptools

[WSL] Unable to launch /usr/bin/gdb when setting bash.exe as the integrated shell in VS Code.

Abierto
#2,811 12 comentarios 0 reacciones 1 asignado Ver en GitHub

@pieandcakes ya está trabajando en esto.

Desde el 15/11/2018.

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

Descripción

I'm unable to launch WSL's installation of gdb when using Visual Studio Code on Windows.

I received an "invalid path" error when I specified this in my launch.json file:

"miDebuggerPath" : "/usr/bin/gdb"

I received an "invalid binary" error when I instead specified this in my launch.json file:

"miDebuggerPath": "/Users/dougdew/AppData/Local/Packages/CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc/LocalState/rootfs/usr/bin/gdb",

I'm running Windows 10 v1803, WSL, Ubuntu 18.04, VS Code v1.29 and C/C++ Extension v0.20.1

I have no other extensions installed.

To reproduce the bug:

  1. Install WSL and Ubuntu 18.04

  2. Install VS Code

  3. Configure VS Code to use the bash shell by adding this to settings:

"terminal.integrated.shell.windows": "C:\WINDOWS\sysnative\bash.exe"

  1. Create directory for cpp project (e.g. /mnt/c/Users/dougdew/Documents/Projects/cpp1)

  2. Create *.cpp file (e.g. main.cpp)

  3. Create tasks.json file with task to build a.out.

  4. Create launch.json file with miDebuggerPath for gdb

  5. Create c_cpp_properties.json file

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.

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.