VC6或VS2005调试Release版本的程序
2010-07-28 19:12
267 查看
Release版本调试及单步跟踪方法, 修改三项位置即可
为了让带调试版Release和不带调试的Release分开,首先
1 新建配置
VC6:
选中菜单Build->Configurations,点按钮Add,在打开的窗口中Configuration填写ReleaseD(新的配置名),Copy settings from 选择Release,关闭窗口
VS2005:
选中菜单Build->Configuration Manager ...,在打开的窗口,新建一个配置ReleaseD,注意配置的新增是在Configuration的下拉列表中选择<New ...>
2 配置生成的调试信息
VC6:
选中菜单Project->Settings-> 打开窗口,选择Settings For:为ReleaseD
在C/C++ -> Category-> General 中
-> Optimization-> Disable(Debug)
-> Debug Info-> Program DataBase
在-> Link---> Generate Debug Info 打上钩
VS2005 选中菜单Project->项目名Properties,打开了设置窗口,选择Configuration为ReleaseD
C/C++ -> General -> Debug Infomation Format 选中Program DataBase (/Zi)
Optimization -> Optimization 选中 Disabled(/Od)
Linker->Debugging -> Generate Debug Info 选择 Yes /DEBUG
为了让带调试版Release和不带调试的Release分开,首先
1 新建配置
VC6:
选中菜单Build->Configurations,点按钮Add,在打开的窗口中Configuration填写ReleaseD(新的配置名),Copy settings from 选择Release,关闭窗口
VS2005:
选中菜单Build->Configuration Manager ...,在打开的窗口,新建一个配置ReleaseD,注意配置的新增是在Configuration的下拉列表中选择<New ...>
2 配置生成的调试信息
VC6:
选中菜单Project->Settings-> 打开窗口,选择Settings For:为ReleaseD
在C/C++ -> Category-> General 中
-> Optimization-> Disable(Debug)
-> Debug Info-> Program DataBase
在-> Link---> Generate Debug Info 打上钩
VS2005 选中菜单Project->项目名Properties,打开了设置窗口,选择Configuration为ReleaseD
C/C++ -> General -> Debug Infomation Format 选中Program DataBase (/Zi)
Optimization -> Optimization 选中 Disabled(/Od)
Linker->Debugging -> Generate Debug Info 选择 Yes /DEBUG
相关文章推荐
- VC中调试Release版本程序
- VC6 程序的 Release 版本添加调试信
- 如何使用VC++调试程序 Debug版本与Release版本
- 如何使用VC++调试程序 Debug版本与Release版本
- VC++调试程序、快捷键以及Debug版本与Release版本
- VC++如何调试程序的 Release 版本?(转)
- 为 VC6 程序的 Release 版本添加调试信息
- 为 VC6 程序的 Release 版本添加调试信息
- 为 VC6 程序的 Release 版本添加调试信息
- 为 VC6 程序的 Release 版本添加调试信息
- Visual C++ Debug 与 Release版本区别 怎样“调试” Release 版的程序
- vc 2003 Release 版本添加调试功能
- VC中DEBUG版本可以正常运行的程序有时无法在RELEASE版本下运行
- 一个在VC的Release下跟踪调试程序的方法
- VC 6.0中怎样设置才能生成Debug或Release版本的程序?
- 如何调试程序的 Release 版本
- 为什么VC中DEBUG版本可以正常运行的程序有时无法在RELEASE版本下正常运行
- VC调试Release版本的方法
- window程序DEBUG和RELEASE 版本差异及调试相关问题
- VC++中调试Release版本时怎样设置断点