在Visual Studio调试的时候,有时候我加了一个断点但是很空洞,VS提示当前不会命中断点.源代码与原始版本不同."显然,这使我无法进行调试.
When debugging in Visual Studio, sometimes I add a breakpoint but it's hollow and VS says "The breakpoint will not currently be hit. The source code is different from the original version." Obviously this prevents me from being able to debug.
这条消息到底是什么意思?什么原版?如果我刚刚打开解决方案并且没有对代码进行任何更改,怎么会有原始版本"?
What on earth does the message mean? What original version? If I've just opened up the solution and not made any changes whatsoever to the code, how can there be an 'original version'?
推荐答案从 Visual Studio 2017 15.3.1 到 15.3.5 出现了解决此问题的新方法.如果您使用 EditorConfig,charset=utf8 选项会导致这些症状.VS 团队已经复制了这个和 表示他们正在努力.
A new way to get this problem has appeared as of Visual Studio 2017 15.3.1 through 15.3.5. If you are using EditorConfig, the charset=utf8 option causes these symptoms. The VS team has reproduced this and says they are working on it.
因此,一种解决方法是在 .editorconfig 文件中注释掉您的 charset=utf8 行.
So one fix is to comment out your charset=utf8 line in the .editorconfig file.
这应该从 VS 15.5 开始修复.
This should be fixed as of VS 15.5.
更多推荐
"断点当前不会被命中.源代码与原始版本不同."这是什么意思?
发布评论