简体   繁体   English

发布后在调试中运行ASP.NET WebAPI项目

[英]Running ASP.NET WebAPI Project in Debug After Published

I have published my Visual Studio ASP.NET WebAPI project and have since realized that I would like to make changes to it. 我已经发布了Visual Studio ASP.NET WebAPI项目,此后意识到我想对其进行更改。 When I press F5 and try to run my project locally it now won't let me do it and I get an error that simply reads "Can't Reach This Page". 当我按F5键并尝试在本地运行我的项目时,现在它不允许我这样做,并且收到一条错误消息,内容为“无法到达此页面”。 It would be very useful to be able to set break points and check variables at this point in development so I need the debugger. 能够在开发的这一点设置断点并检查变量将非常有用,因此我需要调试器。 How can I make it so I can debug my project again? 我该如何做才能重新调试项目?

Running ASP.NET WebAPI Project in Debug After Published 发布后在调试中运行ASP.NET WebAPI项目

Have you publish your ASP.NET WebAPI Project to the Remote IIS server? 您是否已将ASP.NET WebAPI项目发布到远程IIS服务器? If yes, you can install and run the remote tools on the computer where you deployed your app, and then attach to your running app from Visual Studio. 如果是,则可以在部署应用程序的计算机上安装和运行远程工具,然后从Visual Studio附加到正在运行的应用程序。

Document: Remote Debug ASP.NET on a Remote IIS Computer 文档: 远程IIS计算机上的远程调试ASP.NET

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM