You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS and version of remote machine (if applicable): WSL / Debian bookworm
GDB / LLDB version: GDB 13.1
Bug Summary and Steps to Reproduce
I'm trying to debug on WSL with GDB.
Debugger (gdb) runs only once per terminal instance, and I must kill the current terminal to start a new gdb session.
Steps to reproduce:
In this environment: as mentioned above.
With this config: launch.json included.
Start debugging (F5) for the first time after you launch vscode.
Debugger runs fine and everything works, and there is output in the integrated terminal.
Stop debugging (Shift + F5), or maybe the program exists normally. (integrated terminal still open)
Hit F5 to start debugging again, and nothing happens. Just the clock icon on the debug icon on sidebar and nothing happens.
Stop debugging (Shift + F5).
Kill the old terminal (from the last debugging session).
Now if you press F5 everything works again normally.
Each time you want to debug you'll have to make sure to kill the terminal used on that session before starting a new debugging session.
1 - I installed xterm on my Debian/WSL and set { "externalConsole": true } in launch.json, and in that case debugging runs fine, and every time I press F5 a new external terminal (xterm) will launch even if the old one is not closed.
2 - The same setup works fine on Windows 11, with gcc, gdb, and source code all on Windows. The issue only happens if I'm trying to debug on WSL with gcc, gdb, and source code all on linux.
The text was updated successfully, but these errors were encountered:
Environment
Bug Summary and Steps to Reproduce
I'm trying to debug on WSL with GDB.
Debugger (gdb) runs only once per terminal instance, and I must kill the current terminal to start a new gdb session.
Steps to reproduce:
debugger hanging
kill terminal
Debugger Configurations
Debugger Logs
Other Extensions
CMake Tools: 1.17.17
Additional Information
1 - I installed xterm on my Debian/WSL and set { "externalConsole": true } in launch.json, and in that case debugging runs fine, and every time I press F5 a new external terminal (xterm) will launch even if the old one is not closed.
2 - The same setup works fine on Windows 11, with gcc, gdb, and source code all on Windows. The issue only happens if I'm trying to debug on WSL with gcc, gdb, and source code all on linux.
The text was updated successfully, but these errors were encountered: