按F9断点变灰,Debug调试时进不去断点,提示:
The breakpoint will not currently be hit. The source code is different from original version. 大概的意思是说当前的代码与执行文件对应版本的代码不同,这就需要重新编译代码。
解决方案:
1.rebuild工程。
2.在工程的代码文件(.cpp或.h)适当的位置,敲几个回车或按几个空格,然后rebuild。
3.重启VS2010,把OUT目录的东西全删了,然后rebuild。
4.断点处右键点击,选择“Location…” 把“Allow the source code to be different from the original version”复选框勾上。
The breakpoint will not currently be hit. The source code is different from original version. 大概的意思是说当前的代码与执行文件对应版本的代码不同,这就需要重新编译代码。
解决方案:
1.rebuild工程。
2.在工程的代码文件(.cpp或.h)适当的位置,敲几个回车或按几个空格,然后rebuild。
3.重启VS2010,把OUT目录的东西全删了,然后rebuild。
4.断点处右键点击,选择“Location…” 把“Allow the source code to be different from the original version”复选框勾上。

本文介绍了在使用VS2010进行Debug调试时,遇到断点变灰无法进入的情况。提供了多种解决方案,包括重建工程、调整代码文件布局、重启VS2010并清理输出目录,以及允许源代码与原始版本不同等方法。
2921

被折叠的 条评论
为什么被折叠?



