为什么 Visual Studio 调试器在调试 ASP.NET 项目期间停止工作说 ~"Jump not possible"

Why does the Visual Studio Debugger stop working during debugging ASP.NET project saying ~"Jump not possible"

有时,当我在 Visual Studio 2017 中调试我的 ASP.NET(c#) 和 javascript 代码时,调试器会停止单步执行代码并显示

~ Jumping not possible. The operation could not be completed. It should be repeated.

德文原文翻译为:

Springen nicht möglich. Der Vorgang konnte nicht abgeschlossen werden. Er sollte wiederholt werden."

似乎调试器不再附加到该进程,或者后台的某些进程停止工作。

是否有人考虑过同样的问题并且知道如何解决此问题?

我正在使用 Visual Studio 2017,ASP.NET (C#) 页面,调用 HTML5/jquery/Ajax。

调试器停止的代码位置似乎是随机的。这非常烦人,因为我所能做的就是停止并重新开始调试,而且我必须在整个测试场景中再次单击。

这是 issue 的解决方法:

转到工具 -> 选项 -> 调试 -> 常规

关闭

Break all processes when one process breaks.

然而,这会破坏“编辑并继续”体验...