1
错误如下:
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))
原因为 你没有调试器,
步骤如下:
![在这里插入图片描述](https://img-blog.csdnimg.cn/2019073012001222.png
看到这里的调试器的路径为空,证明没有指明路径,也就不能调试;接下来找到桌面coldblocks的文件位置,找到指定调试器的位置,我用的是Mingw,找到gdb.exe的文件位置,更改即可,如下图为C:\Program Files (x86)\CodeBlocks\MinGW\gdb32\bin\gdb32.exe (我用的是机房的电脑) 根据自己电脑自己找;路径改一下就行,然后重启coldblocks就行;
这是这几天不能调试苦了我自己了,以后遇到不能调试的情况我都会写在这里不断更新。
(记住源码的路径千万不能设置带有中文,否则不能调试);