錯誤如下:
Building to ensure sources are up-to-date
Selecting target:
Debug
ERROR: You need to specify a debugger program in the debuggers's settings.
(For MinGW compilers, it's 'gdb.exe' (without the quotes))
(For MSVC compilers, it's 'cdb.exe' (without the quotes))
然后習慣性的設置斷點,調試…出現了問題,如下圖所示
廢話不多說,直接上解決方案。Setting-debugger-GDB/CDB debugger-default中
之前是這樣的
可執行路徑這里是空的,需要指定調試器的位置,我用的是mingw,找到gdb.exe的文件位置,更改即可,如下圖為MinGW\bin\gdb32.exe