-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
bugdebuggerhelp wantedCan be fixed in the public (open source) repo.Can be fixed in the public (open source) repo.
Description
Environment
- OS and version: Microsoft Windows 11 10.0.22631 Build 22631
- VS Code: 1.100.2
- C/C++ extension: 1.25.3
- OS and version of remote machine (if applicable): WSL - Ubuntu 24.04.1 LTS
- GDB / LLDB version: GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Bug Summary and Steps to Reproduce
Bug Summary:
From the Debug Console:
Starting: "wsl" "/usr/bin/gdb-multiarch --interpreter=mi"
/bin/bash: line 1: /usr/bin/gdb-multiarch --interpreter=mi: No such file or directory
"wsl" exited with code 127 (0x7F).
This appears to be due to that fact that VSCode passes "/usr/bin/gdb-multiarch --interpreter=mi" as a single argument and "/usr/bin/gdb-multiarch --interpreter=mi" is not a file.
Steps to reproduce:
- Create launch.json
- Start debugger
- Check Debug Console for error
Debugger Configurations
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch test",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceRoot}/build/out/test",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerServerAddress": "localhost:1234",
"miDebuggerPath": "/usr/bin/gdb-multiarch",
"pipeTransport": {
"pipeProgram": "wsl",
"pipeArgs": [],
"debuggerPath": "/usr/bin/gdb-multiarch"
},
"sourceFileMap":{
"/mnt/c": "C:\\"
}
}
]
}
Debugger Logs
Starting: "wsl" "/usr/bin/gdb-multiarch --interpreter=mi"
/bin/bash: line 1: /usr/bin/gdb-multiarch --interpreter=mi: No such file or directory
"wsl" exited with code 127 (0x7F).
Other Extensions
No response
Additional Information
No response
Metadata
Metadata
Assignees
Labels
bugdebuggerhelp wantedCan be fixed in the public (open source) repo.Can be fixed in the public (open source) repo.