VS编译时出现“Debugging information for "project.exe" cannot be found or does not match. Binary was not built with debug information.”的解决方法

1.进入Project Properties

2.双击进入Configuration Properties

3.进入C/C++,选择General

4.将“Debug information format”的属性改为“Program Database for edit and continue(/zi)”

5.选择CC++下的“optimization”,将“optimization”的属性值改为“Disabled(/Od)”

6.选择Linker下的Debugging,将“Generat debug info”的属性值改为“Yes”

7.单击确定,rebuild你的工程

原文地址:https://www.cnblogs.com/xinyuefeiyang/p/6433997.html