在Project->Properties->c/c++->General->Debug Information Format 选择 /Zi
在Project->Properties->Linker->General->Debugging 的Generate Debug Info 中选择YES
完全的断点设置需要加上:
Project->Properties->c/c++->Optimization->Optimization选择Disabled(/Od)
Project->Properties->c/c++->Optimization->Whole Program Optimization 选择No