CodeBlocks调试器缺少(gdb.exe)文件

错误如下:

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

 

猜你喜欢

转载自www.cnblogs.com/mxj961116/p/10771857.html
今日推荐