有时候程序在Debug版本下能够正常运行.而在release版本下就会出现问题.所以有时候需要在release版本下调试程序;
设置步骤:
1.Project->setings->C/C++,"Optimization"组合框选择"Default"选项;
2."Debug info"组合框选择"Program DataBase for Edit and Continue";
3.在"Link"选项卡中选中"Generate debug info"选项;
这样就可以在release版本下对程序进行调试了!
本文介绍如何在Release模式下进行程序调试。通过调整Visual Studio的设置,包括选择Default优化级别、启用Program Database for Edit and Continue以及勾选Generate Debug Info选项,可以实现在Release版本下调试程序的目的。
1万+

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



