1、切换当前配置为Release-Win32

2、工程属性->C/C++->General->Debug Information Format

3、工程属性->C/C++->Optimization->Optimization(Disabled!)

4、工程属性->Linker->Debugging->Generate Debug Info(Yes!)

5、[OK] Rebuild F5调试运行
原文:http://www.cnblogs.com/MakeView660/p/7169345.html