問題描述:
今天安裝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]