Introduction
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 deploying the code on Azure in VS 2019.
Detailed description
Firstly, you need to go to your App service configuration setting page in Azure.
After that, click on the general setting enable the 'on' radio button of Remote debugging, and select the Visual Studio version by which you publish your application.
After applying these settings click on the Save button.
Now you need to go to your Visual Studio publish section to update the settings for the publishing profile.
Update the Configuration to 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 complete the publish file process, then we need to open Cloud Explorer on Visual Studio 2019. On Cloud Explorer, we need to go to 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!