"断点当前不会被命中.源代码与原始版本不同."这是什么意思?

编程入门 行业动态 更新时间:2024-10-23 15:19:36
本文介绍了"断点当前不会被命中.源代码与原始版本不同."这是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在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.

更多推荐

"断点当前不会被命中.源代码与原始版本不同."这是什么意思?

本文发布于:2023-11-12 04:28:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1580508.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:这是   断点   什么意思   源代码   原始

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!