Azure App Debugging Setup On Visual Studio 2019


Today, I am going to post my first article on this corner. Being a developer C# corner helps me so many times to resolve the bugs and gives a platform to learn newly implemented information about Dot Net Technology.
In this article, we are going to see how to set up the debugging mode after deployed the code on Azure in VS 2019.

Detailed description

Firstly, you need to go on your App service configuration setting page in Azure.
After that, click on the general setting and enable the 'on' radio button of Remote debugging and select your Visual Studio version by which you publish your application.
After applying these settings click on the Save button.
Now you need to go on your Visual Studio publish section to update the setting for the publishing profile.
Update the Configuration as Debug mode and click on the Save button.
After completing all changes, then we need to publish the files on the Azure Cloud.
When we completed the publish file process, then we need to open Cloud Explorer on Visual Studio 2019. On Cloud Explorer, we need to go on App service in Azure account subscription and drag App service it will populate your App service Resource Name. Right-click on the resource name and click on the Attach debugger option.
Now debugger is attached to your solution and your solution will run automatically with Azure URL and we can put the debugger point wherever we need. It is working slowly but it's helpful to find out the issue.
If you have any doubts, please comment below. I will respond as soon as possible.
Happy coding!