TechBubbles Microsoft Technology BLOG

Remote debugging AZURE app service web app

This post outline the steps to debug the AZURE app service using Visual Studio 2017 or Visual Studio 2015.

Before you start remote debugging the application make sure you deployed your web app to azure using debug settings not release.

Step 1

Enable remote debug and visual studio version for your app service web app in AZURE portal

image

Step2

You can attach the debugger in two way one is from cloud explorer as follows. right click on desire web app and say attach debugger

image

other way is go to debug menu and say attach process

image

when it prompts enter the publishing profile credentials for the same

image

publishing profile credentials can be downloaded from portal as below

image

if still cant attach the process then check your corporate network firewall not blocking outbound port 4022 for visual studio 2017 and 4020 for visual studio 2015.

Step 3

If your local policies or firewall rules can’t be changed then create virtual machine with VS 2015 or 2017 in azure and try to connect from virtual machine to your web app. This option should definitely works.

More on this topic can be read https://blogs.msdn.microsoft.com/benjaminperkins/2016/09/22/remote-debug-your-azure-app-service-web-app/

About the author

Kalyan Bandarupalli

My name is kalyan, I am a software architect and builds the applications using Microsoft .NET technologies. Here I am trying to share what I feel and what I think with whoever comes along wandering to Internet home of mine.I hope that this page and its contents will speak for me and that is the reason I am not going to say anything specially about my self here.

Add Comment

TechBubbles Microsoft Technology BLOG

Follow me

Archives

Tag Cloud