遇到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)。

相关文章:

  • 2022-12-23
  • 2021-11-16
  • 2021-08-09
  • 2022-12-23
  • 2021-09-07
  • 2021-06-08
  • 2021-10-08
  • 2021-10-17
猜你喜欢
  • 2022-12-23
  • 2021-03-31
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
  • 2021-10-08
  • 2022-12-23
相关资源
相似解决方案