Skip to content

Launch bash failed when debugging bash on Windows! #877

@bigtang5

Description

@bigtang5

Unable to start debugging. Unable to establish a connection to GDB. Debug output may contain more ...

The console output:

Starting: "C:\Windows\sysnative\bash.exe" "/usr/bin/gdb --interpreter=mi"
�曪?

"C:\Windows\sysnative\bash.exe" exited with code -1 (0xFFFFFFFF).

the launch.json file content:

"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Bash on Windows Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceRoot}/test.out",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceRoot}",
"environment": [],
"externalConsole": true,
"pipeTransport": {
"debuggerPath": "/usr/bin/gdb",
"pipeProgram": "C:\Windows\sysnative\bash.exe",
"pipeArgs": [],
"pipeCwd": ""
},
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]

Metadata

Metadata

Assignees

Labels

debuggermore info neededThe issue report is not actionable in its current state

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions