gpt4 book ai didi

c# - 如何在本地 IIS 而非 Express 中调试 ASP.NET 5 Web 应用程序

转载 作者:太空狗 更新时间:2023-10-29 23:53:24 25 4
gpt4 key购买 nike

因此,在您的本地 IIS 中为您的 4.6(和 <)ASP.NET 网络应用程序设置调试非常容易。但是,我没有看到任何方法可以在 ASP.NET 5 中执行此操作。我看到 IIS Expressefweb。我错过了什么吗?如何设置它以便我可以推送 Play 并让它拉出 Chrome 选项卡并在我的本地 IIS< 中完全调试我的 web 应用程序/?

最佳答案

如果您指的是 Controller 调试,您只需确保在您创建的代码行正确设置断点。之后,你所要做的就是通过IIS Express运行就可以了,当你需要执行步进等操作时,VS会自动提示你查看IDE。

从那里您将能够使用 VS 顶部栏上“调试”选项中的各种调试窗口检查您的代码。

top bar

顺便说一下,如果您使用 .NET Core 彻底查找本地 IIS 的状态,目前还没有办法这样做..

How to configure ASP.NET Core 1.0 to use Local IIS instead of IIS Express?

为了进一步强调使用本地 IIS 的毫无意义,这里引用自 article :

However, with ASP.NET Core there's little to no reason to be running full IIS during development. Why? Because ASP.NET Core applications aren't actually running inside of IIS. Whether you running called from IIS, IIS Express or whether you do dotnet run directly from the command line - you are running the exact same code and in most cases the exact same execution environment. Running inside of IIS really doesn't buy you anything anymore that you can't easily simulate with a command line environment.

关于c# - 如何在本地 IIS 而非 Express 中调试 ASP.NET 5 Web 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34149552/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com