Enable Snapshot Debugger for .NET apps in Azure App Service
Snapshot Debugger currently works for ASP.NET and ASP.NET Core apps that are running on Azure App Service on Windows service plans.
Enable Snapshot Debugger
To enable Snapshot Debugger for an app, follow the instructions below. If you are running a different type of Azure service, here are instructions for enabling Snapshot Debugger on other supported platforms:
- Azure Cloud Services
- Azure Service Fabric services
- Azure Virtual Machines and virtual machine scale sets
- On-premises virtual or physical machines
If you are using a preview version of .NET Core, please follow the instructions for Enable Snapshot Debugger for other environments first to include the Microsoft.ApplicationInsights.SnapshotCollector NuGet package with the application, and then complete the rest of the instructions below.
Application Insights Snapshot Debugger is pre-installed as part of the App Services runtime, but you need to turn it on to get snapshots for your App Service app. Once you have deployed an app, even if you have included the Application Insights SDK in the source code, follow the steps below to enable the snapshot debugger.
Go to the App Services pane in the Azure portal.
Navigate to Settings > Application Insights pane.
Either follow the instructions on the pane to create a new resource or select an existing App Insights resource to monitor your app. Also make sure both switches for Snapshot Debugger are On.
Snapshot Debugger is now enabled using an App Services App Setting.
Disable Snapshot Debugger
Follow the same steps as for Enable Snapshot Debugger, but switch both switches for Snapshot Debugger to Off. We recommend that you have Snapshot Debugger enabled on all your apps to ease diagnostics of application exceptions.