在 “Tools” -> "Compiler Options" -> "Add following commands when calling complier" 下面的編輯框里加上: -g3
然后在下面的 "Add these commands to the linker command line" 下的編輯框上也加上: -g3
此時點擊 ok。重新編譯,應該就可以調試了。
如若還是不行,
轉到剛剛的 programs 標簽頁,
把 gcc 行修改為:gcc.exe -D__DEBUG__,
把 g++ 行修改為: g++.exe -D__DEBUG__ 。