Performing remote debugging
In this section, we will learn how to attach a debugger to our deployed application in Azure App Service. Debugging a remote application is easy with the tooling provided by Visual Studio. Deploying an application in Azure App Service was covered in Chapter 16, Deploying the Application in Azure. We can attach a debugger to an already-deployed service by performing the following:
- Open Cloud Explorer from Visual Studio | View | Cloud Explorer.
- In Cloud Explorer, locate the deployed Azure App Service instance:
- To attach the debugger to the app service, select Attach Debugger in the Actions pane.
- Once the debugger is attached, the application will be opened in the browser from Azure App Service. We can add breakpoints in Visual Studio and debug the application as we would in a local development environment.
Though this is a powerful feature for debugging remotely deployed applications...