使用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__ 。

猜你喜欢

转载自www.cnblogs.com/GyForever1004/p/9349083.html