VC中Release版本调试及单步跟踪方法

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

 

你可能感兴趣的:(优化,properties,database,optimization)