How add debug information in the VC++ Win32 Release mode

本文详细介绍如何在Visual C++中配置ReleaseDebugInfo,包括设置项目配置、调整编译选项等步骤,帮助开发者轻松实现既包含调试信息又适用于发布的编译版本。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

The step list following:

1. From the "Build" menu, choose "Configurations".
2. Click "Add..." button, VC show  "Add Project Configuration" dialog.
3. In the "Configuration" item, input "Release Debug Info". In the "Copy settings from" item, choose "XXX -- Win32 Release". and click "OK" button. (PS: XXX is project name)
4. In the "Build" menu, choose "Set Active Configurations",  "Project configurations:" item choose  "XXX -- Win32 Release". and click "OK" button.
4. From the "Project" menu, choose "Settings..", "Settings For:" item choose "Win32 Release Debug Info".
5  In the "C++" property page and "Category:" item is "General", "Debug info" item choose "C7 Compitable", "Optimization" item choose "Disable (Debug)".
    ,"_DEBUG" character string  replaced  "NDEBUG" character string in the "Preprocessor definition:" item.
6. In the "C++" property page and "Category:" item is "Code Generation", "Use runtime library:" item choose "Debug Multithreaded".
7. In the "Link" property page and "Category:" item is "General", item "Generate debug info" is checked.
8. In the "Link" property page and "Category:" item is "Debug", "Debug info" item is checked.
9. Click "OK" button, close "Project settings" dialog.
10. Rebuild All
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值