在当前工程点击右键选择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
本文介绍如何在C++项目中正确配置调试信息,包括设置DebugInformationFormat为ProgramDatabase(/Zi),禁用优化(/Od),并确保链接器生成调试信息(/DEBUG)及ProgramDatabase文件。这些步骤有助于提高调试效率。
626

被折叠的 条评论
为什么被折叠?



