[英]How can i remotely debug an asp.net core web app deployed on an azure app service
I am working on an asp.net core web application.我正在开发一个 asp.net 核心 web 应用程序。
I need to debug this application (put a breakpoint and inspect variables when this breakpoint is hit).我需要调试这个应用程序(设置一个断点并在命中断点时检查变量)。
I can do this on my local computer, with visual studio.我可以使用 visual studio 在我的本地计算机上执行此操作。
I can do it too if i deploy my web application on a remote IIS Server.如果我在远程 IIS 服务器上部署我的 web 应用程序,我也可以这样做。
But i want to do this when my application is deployed on an azure app service.但是当我的应用程序部署在 azure 应用程序服务上时,我想这样做。
This container does not work with IIS. It seems an azure app service works with Kestrel (do.net run command).此容器不适用于 IIS。似乎 azure 应用程序服务可与 Kestrel(do.net 运行命令)一起使用。 And i don't know how i can remotely debug this application.
而且我不知道如何远程调试此应用程序。
Thanks谢谢
Additionnal informations:附加信息:
If you want use remote debug feature, you need to use Debug
model when you deploy your webapp.如果你想使用远程调试功能,你需要在部署你的webapp时使用
Debug
model。
Something like below in Visual Studio.在 Visual Studio 中类似下面的内容。
In azure devops, you can find it like:在 azure devops 中,你可以这样找到它:
Pipelines
> Builds (or Pipelines)
, open your build pipeline Pipelines
> Builds (or Pipelines)
,打开你的构建管道
Click in Edit, Variables
tab, change the value from variable BuildConfiguration from "release" to "debug"单击编辑,
Variables
选项卡,将变量 BuildConfiguration 的值从“release”更改为“debug”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.