启用非托管调试时不允许更改?
我收到错误
启用非托管调试时不允许进行更改
实际上我收到以下消息,但 Google 没有返回很多结果
启用非托管调试时不允许进行更改
这是什么意思?我该如何修复它?请注意,这是一个 ASP.NET 项目。选中编辑并继续并不会消除此错误。
I get the error
changes not allowed when unmanaged debugging is enabled
Actually I get the below message but Google doesn't return many results
changes are not allowed when unmanaged debugging is enabled
What does this mean? How do I fix it? Note this is an ASP.NET project. Checkmarking Edit and Continue does not make this error go away.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
转到“项目属性”并取消选中“Web”选项卡的“调试器”部分中的“本机代码”。
编辑:针对 ASP .Net 进行了更改
Go to Project Properties and uncheck Native Code in the Debuggers section of the Web tab.
EDIT: Changed for ASP .Net
Visual Studio 中的混合模式调试器是与本机代码调试器或托管代码调试器完全不同的调试器。主要目的是同时结合非常复杂的托管调试 API 和非常复杂的本机调试 API,以便在同时使用本机和托管代码时提供可靠、可用的调试器。由于调试器的编写方式,Visual Studio 混合模式调试团队必须完全重新实现编辑并继续(这恰好是技术上最具挑战性的调试功能)才能包含它。我想这是因为:
与实际挑战相权衡的好处导致压倒性的投票结果是忽略此功能。
The Mixed Mode debugger in Visual Studio is a completely different debugger than either the native code debugger or managed code debugger. The primary purpose is to tie into both the very complicated managed debugging API and the very complicated native debugging API at the same time to provide a reliable, usable debugger when working with native and managed code simultaneously. Due to how the debuggers are written, the Visual Studio mixed-mode debugging team would have had to completely re-implement edit-and-continue (which happens to be the most technically challenging debugging feature) to include it. I imagine this was cut because:
The benefits weighted against the practical challenges leads to an overwhelming vote of leaving this feature out.
对于 ASP.NET Web 应用程序/网站项目,请转到“Web”选项卡并滚动到最底部,其中显示“调试器”,取消选中本机代码
For ASP.NET Web Application / Web Site projects go to "Web" tab and scroll to the very bottom where it says Debuggers uncheck native code
在 VS 2017 中,此选项位于项目属性的“调试”部分。取消选中“启用代码调试”选项。
In VS 2017, this option is in the "Debug" section of the project properties. Uncheck the "Enable Code Debugging" option.