问题描述:
今天安装code:blocks之后发现可以正常编译运行,但是没有办法调试,错误提示如下:
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
配制方法及其他注意事项:
1 进行调试的必须是一个project而不能是一个单一的cpp文件。
2 project的路径不能包含中文,尽量不要包含空格,不知道空格会不会有影响。
3 本身没有打开编译器的-g标志,具体:在setting->complier and debugger->global complier setting->complier flags中勾选produce debugging symbols[-g]