Search code examples
visual-studioazurevisual-studio-2017

How do I attach the debugger to an Azure web app in Visual Studio 2017?


Since Azure is being updated rather often, I have yet to find an updated guide on how to do remote Azure debugging specifically for Visual Studio 2017.

I would simply like to know how to attach to the process running on the Azure server so that I can debug my web app.


Solution

  • If you are talking about debugging a web site or api hosted in app service or service fabric, you should try using Cloud Explorer. My experiences with it have been very good.

    Its pretty simple. When you open up Cloud Explorer, it shows all subscriptions and resources available to your account(s). When opening e.g. the app services for your subscription, you deployed application will be visible. You can then simply right click and say "attach debugger", as can be seen here:

    from visualstudio.com

    You can add multiple accounts to visual studio, and select the one that has access to the resource.

    This is a more extensive tutorial on how to use the Cloud Explorer:

    https://learn.microsoft.com/en-us/azure/vs-azure-tools-resources-managing-with-cloud-explorer