xmake-vscode: Windows: debugger not found on MinGW
Describe the bug
When attempting to debug a program using the xmake Debug button in the VS Code extension, we get an error message popup.
Error output
Unable to start debugging. Launch options string provided by the project system is invalid. Unable to determine path to debugger. Please specify the “MIDebuggerPath” option.
Info
The line that is causing the issue is:
https://github.com/xmake-io/xmake-vscode/blob/master/src/debugger.ts#L116
Putting the full path to gdb.exe in that field, eg:
miDebuggerPath: "C:/dev/msys64/mingw64/bin/gdb.exe",
… fixes it.
I do not know at this stage how to get the MinGW root from xmake in this extension so that we can append /bin/gdb.exe to it.
- xmake vscode version: 1.4.3
- os: Win10
- target platform: MinGW
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 19 (19 by maintainers)
I have updated code and xmake-vscode plugin on market.
Ok, I will improve it in xmake-vscode. thanks~