如何使用Dev C++调试(debug)c程序
2011-11-06 10:00
411 查看
方法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
转自http://www.cnblogs.com/leelike/archive/2011/01/14/1935682.html
在“工具”-》编译选项-》"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
转自http://www.cnblogs.com/leelike/archive/2011/01/14/1935682.html
相关文章推荐
- 如何使用Dev C++调试(debug)c程序
- 如何使用Dev C++调试(debug)c程序
- 如何使用Dev C++调试(debug)c程序
- 如何使用VC++调试程序 Debug版本与Release版本
- 如何使用VC++调试程序 Debug版本与Release版本
- 如何使用WinDbg调试程序
- 如何使用CDT调试需要ROOT权限的LINUX程序
- C#中如何使用断点操作调试程序
- Android studio中如何利用Debug模式来调试程序
- 使用OD调试程序的时候,如何给程序传递参数
- Windows64位下使用debug调试汇编程序
- 如何使用arm-eabi-gdb调试android c/c++程序
- 在myEclipse中使用debug调试程序?
- 利用dos使用debug调试程序
- 使用OutputDebugString调试窗口程序
- Android 软件开发之如何使用Eclipse Debug调试程序详解
- 如何使用*.pdb与源代码进行Web程序的调试?
- C#跟踪和调试程序-Debug类使用
- 在_Linux_中如何使用_gdb_调试_C_程序
- Linux下如何使用图形界面工具调试程序