1. 在tools->compiler option->compiler得"Add following commands when calling complier"下面的編輯框里加上:-g3. 然后在下面的"Add these commands to the linker command line" 下的編輯框上加上:-g3.
2. 在tools->compiler option->settings->linker下設置生成調試調試信息.

3. 轉到programs頁(yè),把gcc行修改為:gcc.exe -D__DEBUG__,把g++行修改為g++.exe -D__DEBUG__ ,點(diǎn)擊ok。
4. 重新編譯,就能調試了
聯(lián)系客服