报错信息如下:
Active debugger config: GDB/CDB debugger:Default
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))
网上有的说设置debugger的gdb路径,但是对于没有安装MinGW或者不知道自己电脑里面的MinGW路径的朋友,不是一个简单的办法。
最最快速简单的解决办法:
下载CODE BLOCKS带编译器的安装包,安装上就自动配置好了调试参数,例如操作系统是win10 64位,下载下面的Code Blocks Windows 64 bit (including compiler) 20.03安装上就可以了,下载链接如下:
CODE BLOCKS DOWNLOAD