vs2008 怎么在Release下调试代码

时间:2021-01-26 18:30:08

vs2008 怎么在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