Closed yh-sb closed 1 month ago
xmake-vscode does not use launch.json, it will generate it in memory and pass it to debugger directly. It is not a bug.
if you want to custom some launch configs, you should use xmake.customDebugConfig
https://github.com/xmake-io/xmake-vscode/issues/77 https://github.com/xmake-io/xmake-vscode/issues/246
Xmake Version
2.9.3
Operating System Version and Architecture
Windows 11 23H2 22631.3880
Describe Bug
Debug doesn't work from launch.json, but works from button on the panel. This reproduced with MinGW only. With MSVC it works fine in both ways.
See the .gif where I:
NOTE: I am also able to start debug via cpptools vscode extension. So there are no problem with .exe which I want to debug. The problem here is handling xmake debug config in launch.json.
Expected Behavior
Debug session with xmake configuration from launch.json starts fine.
Project Configuration
Basic xmake C++ project. Can be even without Qt.
xmake f -p mingw -m debug
xmake
launch.json:
Additional Information and Error Logs
DEBUG CONSOLE:
TERMINAL: