在当前工程点击右键选择properties,选择 All Configurations
- C++ --> General --> Debug Information Format --> Program Database (/Zi)
- C++ --> Optimization --> Optimization --> Disabled (/Od)
- Linker --> Debugging --> Generate Debug Info --> Yes (/DEBUG)
- Linker --> Debugging --> Generate Program Database File --> $(TargetDir)$(TargetName).pdb