Release 下调试代码设置 (VS2005/2008)
Release 下想调试代码只需要修改一下设置:
- 右键当前工程, 选择properties
- 选择 All Configurations
- C++>General->Debug Information Format->Program Database (/Zi)
- C++>Optimization->Optimization->Disabled (/Od)
- Linker->Debugging->Generate Debug Info->Yes (/DEBUG)
- Linker->Debugging->Generate Program Database File->$(TargetDir)$(TargetName).pdb (default path)