asp.net - 当前不会命中断点 - 没有可执行代码与此行相关联

标签 asp.net iis asp.net-core .net-core visual-studio-debugging

我在调试 ASP.NET Core 2 应用程序时遇到问题。突然间应用程序中的所有断点都无法命中。

当前不会命中断点。没有调试器目标的可执行代码与此行相关联。

调试开始后断点工具提示中的消息是:

The breakpoint will not currently be hit. No executable code is associated with this line. Possible causes include: conditional compilation or complier optimizations, or the target architecture of this line is not supported by the current debugger code type.

最佳答案

我的解决方案是更改项目的构建属性。

项目属性-> 构建-> 高级(按钮)- 调试信息(选择框)-> FULL。

关于asp.net - 当前不会命中断点 - 没有可执行代码与此行相关联,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50306571/

相关文章:

asp.net - 经典ASP值得学习吗?

c# - 如何在 ASP 下拉列表列表项中使用彩色圆圈? (没有 jQuery)

asp.net - 如何在 Bootstrap 类中包装 ASP.net 验证控件?

.net - .cer 和 .pfx 文件有什么区别

iis - IIS 的最佳 GZIP 压缩设置是什么?

c# - ASP.Net Core 应用程序中 LocalAppData 的路径

c# - ASP.NET Core 2 中的依赖注入(inject)问题

asp.net - 将 ControlParameter 添加到 SqlDataSource 会阻止查询和数据绑定(bind)吗?

xml - 在 IIS 服务器 web.config 文件中放置 <httpProtocol> 的位置

c# - aspnetcore web项目导入另一个项目的 Controller