vs 断点无效

断点显示白色,鼠标移上去,提示:The breakpoint will not currently be hit. No Symbols have been loaded for this document. 

解决方法

方法一 :

Debug > Options > General > 将 “Enable Just My Code”前的复选框取消掉

方法二 :

如果是在debug下:

1.检查工程配置是否设置正确。

  1. C++>General->Debug Information Format->Program Database (/Zi)
  2. C++>Optimization->Optimization->Disabled (/Od)
  3. Linker->Debugging->Generate Debug Info->Yes (/DEBUG)
  4. Linker->Debugging->Generate Program Database File->$(TargetDir)$(TargetName).pdb

2..如果工程配置没问题,请打开:

  Tools->Option->debugging->General  找到 Require source files to exactly match the original version 不要打勾

  即:工具->选项->调试里->常规 找到  要求原文件与原始版本完全匹配 不要打勾

 

 

参考博客:http://www.cnblogs.com/fangyukuan/archive/2010/12/20/1911730.html

posted on 2021-09-22 15:28  张不胖  阅读(607)  评论(0)    收藏  举报

导航