打开vc设置中release下的调试信息生成选项
2012-05-12 15:47
363 查看
In
your VC++ project, go to Project | Settings. Make sure the Release configuration is selected in theSettings For combobox on the left. Go to the C/C++ tab,
select the General category, and selectProgram Database in the Debug Info combobox. This tells the compiler to generate debug information
Go to the Link tab and check Generate debug info. This tells the linker to collate debug information into .pdb files. The linker also puts the name of the .pdb file in the executable,
so the debugger can find it.
On the same Link tab, enter /OPT:REF at the end of the Project Options list. This tells the linker to eliminate functions and/or
data that are never referenced. This is the usually the default for release builds, but it gets turned off when you tell the linker to generate debug information. Failing to specify/OPT:REF will cause your executables and DLLs
to get 10-20% larger
your VC++ project, go to Project | Settings. Make sure the Release configuration is selected in theSettings For combobox on the left. Go to the C/C++ tab,
select the General category, and selectProgram Database in the Debug Info combobox. This tells the compiler to generate debug information
Go to the Link tab and check Generate debug info. This tells the linker to collate debug information into .pdb files. The linker also puts the name of the .pdb file in the executable,
so the debugger can find it.
On the same Link tab, enter /OPT:REF at the end of the Project Options list. This tells the linker to eliminate functions and/or
data that are never referenced. This is the usually the default for release builds, but it gets turned off when you tell the linker to generate debug information. Failing to specify/OPT:REF will cause your executables and DLLs
to get 10-20% larger
相关文章推荐
- Dev C++工程没有调试信息,您想打开工程的调试选项并重新生成吗?解决方法
- QT程序 release模式下生成调试信息的参数设置
- Windows程序调试系列: 使用VC++生成调试信息
- vs2010 release 提示调试信息不能生成或不匹配
- vs2008 c++工程如何设置生成调试信息
- VC++.Net在Release方式下单步调试时需要修改一些设置,否则变量会有错位或乱码
- VC++中调试Release版本时怎样设置断点
- VS2010使用Release进行调试的三个必须设置选项
- VC6下Release版工程增加调试信息遇到的问题和解决的方法
- VC++中调试Release版本时怎样设置断点
- 使用VC++生成调试信息(转)
- Windows程序调试系列: 使用VC++生成调试信息
- VS在Release下设置断点调试信息
- Windows程序调试系列: 使用VC++生成调试信息
- vs2010 QT: release时 提示“无法找到.exe的调试信息 或者调试信息不匹配 未使用调试信息生成二进制文,是否继续调试”的解决方案
- VC 6.0中怎样设置才能生成Debug或Release版本的程序?
- 魅蓝和vivo怎么打开开发者选项或者打开usb调试(设置~关于本机~连续点击7次版本)
- 为 VC6 程序的 Release 版本添加调试信息
- 使用VC++生成调试信息
- VC 设置调试Release版本的断点(转自新浪blog:xazhuyuchen)