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

Posted mxj961116

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

 技术图片

以上是关于CodeBlocks调试器缺少(gdb.exe)文件的主要内容,如果未能解决你的问题,请参考以下文章