[英]Breakpoints not being hit when remote debugging Azure web app in Visual Studio
I'm having an issue with my deployed web app that's not occurring locally, so I wanted to use remote debugging to see what's going on. 我的部署的Web应用程序出现问题,该问题不在本地发生,因此我想使用远程调试来查看发生了什么。
I'm following the steps outlined here: https://docs.microsoft.com/en-us/visualstudio/debugger/remote-debugging-azure?view=vs-2017#remote_debug_azure_app_service 我正在按照此处概述的步骤进行操作: https : //docs.microsoft.com/zh-cn/visualstudio/debugger/remote-debugging-azure?view=vs-2017#remote_debug_azure_app_service
My site is already deployed, so I just right-clicked the app in Server Explorer and selected "Attach Debugger". 我的站点已经部署完毕,因此我只需在Server Explorer中右键单击该应用程序,然后选择“ Attach Debugger”。 My web app is launched, but none of my breakpoints are ever hit.
我的Web应用程序已启动,但没有遇到断点。
I have remote debugging enabled on my app: 我在我的应用程序上启用了远程调试:
Not sure if it matters, but I set my configuration to Debug locally, but maybe I need to somehow set it to Debug in Azure? 不知道这是否重要,但我将配置设置为“本地调试”,但也许我需要以某种方式将其设置为“在Azure中调试”? (not sure how to do this)
(不确定如何执行此操作)
Anyone know what I'm doing wrong here? 有人知道我在做什么错吗? The steps in the Microsoft docs seem pretty straightforward.
Microsoft文档中的步骤似乎非常简单。
You need to deploy your application with Debug configuration rather than Release. 您需要使用Debug配置而不是Release部署应用程序。 For this open
Properties => PublishProfiles => yourProfile.pubxml
and find <LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
and change it to <LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration>
为此,打开
Properties => PublishProfiles => yourProfile.pubxml
并找到<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
并将其更改为<LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.