1.必须建立工程
2.工程名不可有特殊字符或空格,可以有字母、数字、下划线
2.编译器设置里勾选-g(产生调试符号)
3.重新编译项目(如果之前编译过了)
4.调试器设置 > Default > 设置可执行路径为: (安装路径)CodeBlocksMinGWingdb.exe
5.设置断点,调试
上次升级Code::Blocks后调试器路径就变了(变成了这个CodeBlocksMinGWgdb32ingdb32.exe),然后导致调试报错Starting the debuggee failed: No executable specified, use `target exec'