"断点当前不会被命中.源代码与原始版本不同."这是什么意思? [英] "The breakpoint will not currently be hit. The source code is different from the original version." What does this mean?

查看:32
本文介绍了"断点当前不会被命中.源代码与原始版本不同."这是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在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 出现了解决此问题的新方法.如果您使用 EditorConfigcharset=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.

这篇关于"断点当前不会被命中.源代码与原始版本不同."这是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆