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))
解决方案:
1.点击Settings,选择Debugger选项
2.点击Default,选择Executable path,在codeblock的安装目录下的MinGW的文件夹的bin里面选择一个gdb.exe的文件。