dev C++ 不能调试的解决方法
来源:互联网 发布:软件行业压力大 编辑:程序博客网 时间:2024/05/29 04:48
DevC++4.9.9.2中,按 F8 开始调试。提示信息为:工程没有调试信息,您想打开工程的调试选项并重新生成吗?选择是后,再按F8,仍旧是这个信息。什么原因呢?
按照帮助,Frequently Asked Questions (FAQ)中提示
How do i enable Debugging mode ?
Go to Compiler Options and click on the Compiler sheet. In the Linker section, put projectes?to 'Generate debugging information'. Do a 'Rebuild All' and you should be able to debug now.
tools->compiler option->settings->linker里设置为yes后,Generate debugging information,并且Rebuild All 了。还是不行,但是,经试验发现,系统提供的例子程序却能调试,没办法,只好比较一下编译信息,发现,自己建立的工程在编译的时候,没有加-g选项,在 gdb的帮助里说到,要想使用gdb调试,必须加上这个参数(因为Dev C++使用的是gdb调试器),在仔细查找,发现在工程文件夹里有一个Makefile.win的文件,打开一个,是一个Makefile文件,因此,就 得从刚才compiler option选项里配置,经过试验,有四处需要变化:
1、在“工具”-》编译选项-》"Add following commands when calling complier"下面的编辑框里加上:-g3
2、在下面的"Add these commands to the linker command line" 下的编辑框上加上:-g3
3、转到programs页,把gcc行修改为:gcc.exe -D__DEBUG__
4、把g++行修改为g++.exe -D__DEBUG__ ,点击ok。
重新编译,就能调试了。
在笔者的机器上试验成功,大家可以参照此方法,去配置你的Dev ++环境。
- Dev cpp不能调试问题的解决方法
- dev C++ 不能调试的解决方法
- dev C++ 不能调试的解决方法
- dev C++ 不能调试的解决方法
- dev c++ 不能调试的解决方法
- 解决Dev-c++不能调试的方法
- dev不能调试
- Dev 控件不能显示在工具条的解决方法
- VC6.0 不能断点调试的解决方法
- VC6.0 不能断点调试的解决方法
- chrome不能断点调试的解决方法
- Eclipse不能调试手机的解决方法
- keil不能进调试模式的解决方法
- chrome不能断点调试的解决方法
- VC不能调试,解决方法
- VS 不能调试 解决方法
- VS不能调试解决方法
- 红米真机不能调试解决方法
- Dimming the background.
- 注意职场“十不要”,让你少奋斗30年
- Windows 7 Still Vulnerable to Viruses — Really?
- Hibernate的性能优化
- 堆
- dev C++ 不能调试的解决方法
- 作为第四代语言的 UNIX Shell
- C# 读取和写入oracle的blob字段的方法
- 原来真的没有合适不合适,只有珍惜不珍惜
- QDM FOR SQL MODEL
- FastLoad Explained - TBC
- 解决MyEclipse 6.5启动出现的Could not create the Java virtual machine问题
- Query whether you have the access to a specific database
- speex-1.2beta2开源音频编码器win32下编译的一点心得