dev C++ 不能调试的解决方法

来源:互联网 发布:网络洗黑钱支付宝 编辑:程序博客网 时间:2024/05/07 16:57

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下设置生成调试调试信息.(Greate debugging information)勾选YES就行了

 

3. 转到programs页,把gcc行修改为:gcc.exe -D__DEBUG__,把g++行修改为g++.exe -D__DEBUG__ ,点击ok。


4. 重新编译,就能调试了

原创粉丝点击