"The source file is different from when the module was built."问题的解决办法

来源:互联网 发布:网络机顶盒使用视频 编辑:程序博客网 时间:2024/05/22 15:06

The source file is different from when the module was built.

Would you like the debugger to use it anyway?

 

解决办法一:

         直接点击“是”按钮,程序仍旧可以正常运行下去。不过,每次都要点,很麻烦。

解决办法二:

         在此程序的开头(即断点所在cpp的开始部分)加入一段汉字注释,如://你好

         程序即可照常运行。虽然很奇葩,但是确实可以解决问题……

解决办法三:

         在断点处右击,然后选择Location选项。


然后在“Allow the source code to be different from the original cersion”选线前打勾,程序即可照常运行。



解决办法四:

         产生这个问题一个可能的原因是当程序建立是,PDB文件没有更新。

         在“SolutionExplorer”中选择Solution…右击,选择Clean Solution,之后重新建立“Build Solution”。


        

0 0
原创粉丝点击