Error message:
The source file is different from when the module was built. Would you like the debugger to user it anyway?
When choose Yes, the breakpoint will be hit, detail information is:
"The breakpoint will not currently be hit. The source code is different from the original version."
right-click on the breakpoint in question, and you should see a Location item. On the resulting dialog you should see an override checkbox which will get rid of the message you're seeing when you hover over your breakpoints. Or you could go to Tools->Options->Debugging->General and uncheck the "Require source to exactly match..." option, which will turn off all checksum functionality in the debugger.
Solution:
Build->Configuration Manager
Check whether all project allows to build when the Configuration is Debug.
出处:http://maobisheng.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。