codeblocks安装包及配置debugger【ERROR: You need to specify a debugger program in the debuggers's settings.】

1、选择codeblocks-17.12mingw-setup.exe来下载,目测这个是自带编译器和调试的各种配件的,所以比其他的好,也可以自己看一下每个安装包的内容自行决定。

codeblocks安装包及配置debugger【ERROR: You need to specify a debugger program in the debuggers's settings.】

 

2、当用debug想要调试时出现了这样子的问题,原因是debug调试器没有选对路径

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))

codeblocks安装包及配置debugger【ERROR: You need to specify a debugger program in the debuggers's settings.】

解决方法:如下图

第一步:选择Settings---->Debugger...

第二步:选择Default

第三步:在自己刚安装的CodeBlocks路径下找到文件 MinGw\bin\gdb32.exe

然后OK后再重新调试就会发现可以正常运行,不会再出现上述错误了。

codeblocks安装包及配置debugger【ERROR: You need to specify a debugger program in the debuggers's settings.】