码迷,mamicode.com
首页 > 编程语言 > 详细

使用Dev C++调试(debug)程序

时间:2018-07-22 11:36:09      阅读:164      评论:0      收藏:0      [点我收藏+]

标签:bug   and   调试   行修改   linker   c++   pre   cal   following   

在 “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__ 。

使用Dev C++调试(debug)程序

标签:bug   and   调试   行修改   linker   c++   pre   cal   following   

原文地址:https://www.cnblogs.com/GyForever1004/p/9349083.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!