VS2015: remote debugging azure site

I cannot connect Visual Studio 2015 to a remote Azure site. Or rather, it adapts well, but no breakpoints ever hit.

I confirmed that I am publishing a debug assembly. I was looking for web.config to require this.

I confirmed that remote debugging support in 2015 was activated on the Azure portal.

The site starts up fine after an attachment ... there are simply no breakpoints.

This is an MVC6 site using rc1.

0
source share
2 answers

For other people struggling with this, it turns out that VS2015, even with all the latest updates, does not "know" about the work of dnx under Azure. Therefore, it joins the wrong process on the Azure site.

After doing "Debugging the Debugger" in Cloud Explorer or Server Explorer, you should go to Debug β†’ Attach to Process and do two things:

  • change the qualifier so that it points to a remote Azure site
  • manually connect to the dnx.exe process

The first step seems to be "remembered" by VS 2015. The second step is definitely not; You must do this every time you make a remote debugging application.

In addition, you need to update the site in your browser by doing all this to start the debugging cycle.

Here's a link that explains this a bit more: https://blogs.msdn.microsoft.com/webdev/2016/03/21/remote-debug-aspnet-core-on-azure/

0
source
  • Try downloading cloud explorer here

  • attach the debugger below

enter image description here

  1. Enable debugging setup in the azure portal with the visual version of the studio, as shown below enter image description here

  2. Attach the remote debugger to w3wp as shown below. enter image description here

5 Make sure Debug must be = true

Make sure you deploy the application in azure in debug mode

0
source

Source: https://habr.com/ru/post/1247925/


All Articles