Remote debugging Azure website: Breakpoints not hit

后端 未结 6 1847
余生分开走
余生分开走 2021-01-04 21:48

I\'ve got an ASP.NET website that I deployed to Azure. I\'m using VS2013, .NET 4.5.1 and Azure SDK 2.2. I turned on remote debugging for VS2013 in the management portal. I c

6条回答
  •  余生分开走
    2021-01-04 22:47

    After struggling with this for hours, I found a consistent solution. I think the root cause is simply a confusing UI. Try this:

    1. Make sure your Web Job is running
    2. VS 2017 -> View -> Cloud Explorer
    3. Click on the WebJob name in Cloud Explorer then simply wait. After 15s or so, "Attach Debugger" will magically appear in the actions area below. It seems that when you click on the WebJob name, VS2017 has to query the WebJob remotely in Azure to determine if it's both running and if it's possible to perform remote debugging, which takes time. If the answer to both is "yes", then "Attach Debugger" will appear in the UI.

提交回复
热议问题