我在Azure上部署了Web API。Web API的其中一个操作方法失败。要访问该特定操作方法,用户必须先登录。是否有任何官方指南可以帮助我执行Web API的调试过程?我是否需要同时部署Web应用程序和Web API才能将调试器附加到应用程序服务,或者我应该只使用postman进行API调用?
w6lpcovy1#
To enable debugging on azure app service resources you have to look into the following steps:
azure app service resources
Enable Remote Debugging on Azure App service:
1.SELECT YOUR APP SERVICE WHICH WANT TO DEBUG2. TO TO GENERAL SETTINGS
1.SELECT YOUR APP SERVICE WHICH WANT TO DEBUG
2. TO TO GENERAL SETTINGS
3. SCROLL DOWN AND LOCATE DEBUGGING4. CLICK TO ON5. SELECT YOUR VISUAL STUDIO VERSION
3. SCROLL DOWN AND LOCATE DEBUGGING
4. CLICK TO ON
5. SELECT YOUR VISUAL STUDIO VERSION
Open Cloud Explorar Option In Visual Studio :
Now in visual studio go to View and click on Cloud Explorer
View
Cloud Explorer
When you would provide login credential it should load your app service project as below:
Note: Your project which you want to debug should be open in visual studio as well.
isr3a4wc2#
上面的答案非常详细地介绍了如何使用w3wp附加调试器。我认为您应该开始启用HTTP日志记录和事件查看器日志,以便更好地了解失败的原因。
参考:https://azure.github.io/AppService/2020/08/31/AzMon-AppServiceAppLogs.html
2条答案
按热度按时间w6lpcovy1#
To enable debugging on
azure app service resources
you have to look into the following steps:Enable Remote Debugging on Azure App service:
1.SELECT YOUR APP SERVICE WHICH WANT TO DEBUG
2. TO TO GENERAL SETTINGS
3. SCROLL DOWN AND LOCATE DEBUGGING
4. CLICK TO ON
5. SELECT YOUR VISUAL STUDIO VERSION
Open Cloud Explorar Option In Visual Studio :
Now in visual studio go to
View
and click onCloud Explorer
When you would provide login credential it should load your app service project as below:
Note: Your project which you want to debug should be open in visual studio as well.
isr3a4wc2#
上面的答案非常详细地介绍了如何使用w3wp附加调试器。
我认为您应该开始启用HTTP日志记录和事件查看器日志,以便更好地了解失败的原因。
参考:https://azure.github.io/AppService/2020/08/31/AzMon-AppServiceAppLogs.html