怎么在Release下调试代码

(适用VS2005/VS2008)

在当前工程点击右键选择properties,选择 All Configurations

  1. C++>General->Debug Information Format->Program Database (/Zi)
  2. C++>Optimization->Optimization->Disabled (/Od)
  3. Linker->Debugging->Generate Debug Info->Yes (/DEBUG)
  4. Linker->Debugging->Generate Program Database File->$(TargetDir)$(TargetName).pdb
原文地址:https://www.cnblogs.com/fangyukuan/p/1721718.html