jackloverose

导航

 

方法1:(已验证)

在“工具”-》编译选项-》"Add following commands when calling complier"下面的编辑框里加上: -g3
然后在下面的"Add these commands to the linker command line" 下的编辑框上加上: -g3

转到programs页,把gcc行修改为:gcc.exe -D__DEBUG__

把g++行修改为: g++.exe -D__DEBUG__ ,

点击ok。
重新编译,就能调试了。

原文:http://www.cnblogs.com/leelike/archive/2011/01/14/1935682.html

posted on 2013-03-04 13:28  jackloverose  阅读(477)  评论(1)    收藏  举报