VC无法设断点的问题

遇到VC无法设断点的时候,可以尝试如下3种方法:

1、直接在菜单Build里面执行Rebuild All,一般能解决问题。

2、在项目属性中,C∕C++的General,将debug info设置为Program Databse for Ddit & Continue ;删除所有的断点,重新下断点。

3、对于VS2008可以尝试:Tools->Option->debugging->General 右边找到Require source files to exactly match the original version 把前面的勾去掉。

4、对于VS2008上将LIB改造成DLL的情况,可以看下属性页:Linker->Debugging->Generate Debug Info是否设置成Yes (/DEBUG)。

原文地址:https://www.cnblogs.com/wxxweb/p/2326163.html