Release 下调试代码设置 (VS2005/2008)

  • release 下想调试代码只需要修改一下设置:
    1. 右键当前工程, 选择properties
    2. 选择 All Configurations
    3. C++>General->Debug Information Format->Program Database (/Zi)  // 默认:Disabled
    4. C++>Optimization->Optimization->Disabled (/Od)  //默认: Maximize speed (/02)
    5. Linker->Debugging->Generate Debug Info->Yes (/DEBUG) // 默认: No
    6. Linker->Debugging->Generate Program Database File->$(TargetDir)$(TargetName).pdb (default path)
    保存下就OK 了. 

你可能感兴趣的:(release)