- Solution: 通过使能调试,可以解决该问题,具体步骤为:
- 打开Project Properties
- 展开 "Configuration Properties"
- 展开 "C/C++"
- 选择 "General",将 "Debug Information Format" 改为 "Program Database For Edit And Continue (/ZI)"
- 选择 "Optimization",将 "Optimization" 改为 "Disabled (/Od)"
- 展开 "Linker"
- 选择 "Debugging"
- 将 "Generate Debug Info" 改为 "Yes"
- 确定