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.检查工程配置是否设置正确。
- C++>General->Debug Information Format->Program Database (/Zi)
- C++>Optimization->Optimization->Disabled (/Od)
- Linker->Debugging->Generate Debug Info->Yes (/DEBUG)
- 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
浙公网安备 33010602011771号