方法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。
重新编译,就能调试了。
方法2:(本人未验证)
在dev c++ 环境中,写程序的时候,写了一个类,但是有点问题,想调试一下,但是调试的时候,老出现这个问题
your project does not have debugging info, do you want to enable debugging and rebuild your project?
在网上搜了一下解决方法
在 tools --> compiler options --> compiler, 有一个选项是:
Add these commands to the linker command line
将此选项勾选,并将内容 添加为 -g3 -gstabs
在“工具”-》编译选项-》"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。
重新编译,就能调试了。
方法2:(本人未验证)
在dev c++ 环境中,写程序的时候,写了一个类,但是有点问题,想调试一下,但是调试的时候,老出现这个问题
your project does not have debugging info, do you want to enable debugging and rebuild your project?
在网上搜了一下解决方法
在 tools --> compiler options --> compiler, 有一个选项是:
Add these commands to the linker command line
将此选项勾选,并将内容 添加为 -g3 -gstabs
Dev-C++ 调试指南
本文提供了两种在Dev-C++中启用调试的方法。方法一通过修改编译选项及GCC/G++命令来添加调试信息;方法二则针对类调试问题提供了解决方案。
2091

被折叠的 条评论
为什么被折叠?



