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

在 “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__ 。
posted @ 2018-07-22 09:24  Zackary丶Liu  阅读(1312)  评论(0)    收藏  举报