【问题标题】:Visual Studio 2019 does not allow code change while debuggingVisual Studio 2019 不允许在调试时更改代码
【发布时间】:2021-09-19 11:09:28
【问题描述】:

我最近从 Visual Studio 2017 切换到 2019,遇到断点后更改代码的问题(调试)。

即使是很小的变化,例如更改变量的值会阻止代码继续,我总是收到消息: 对无法在调试时应用的代码进行了编辑。

Visual Studio 2019 Debugging settings

这是 Visual Studio 2019 的错误还是预期行为?在 VS2017 上,我能够更改大部分代码,但我仍然能够在不重新启动应用程序的情况下继续执行代码。

【问题讨论】:

    标签: visual-studio visual-studio-2019


    【解决方案1】:

    以下是编辑和继续有效和无效的完整最新列表。

    https://github.com/dotnet/roslyn/blob/main/docs/wiki/EnC-Supported-Edits.md

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-10-09
      • 2020-07-21
      • 1970-01-01
      • 2022-01-07
      • 1970-01-01
      • 2019-08-10
      • 2019-09-25
      • 1970-01-01
      相关资源
      最近更新 更多