Debug snapshots on exceptions in.NET apps • • 14 minutes to read • Contributors • • • • • • In this article When an exception occurs, you can automatically collect a debug snapshot from your live web application. The snapshot shows the state of source code and variables at the moment the exception was thrown. The Snapshot Debugger (preview) in monitors exception telemetry from your web app. It collects snapshots on your top-throwing exceptions so that you have the information you need to diagnose issues in production. Include the in your application, and optionally configure collection parameters in.
Life's more fun when you live in the moment!:) Download Snapchat for iOS and Android, and start Snapping with friends today. Just download the mobile app, register, and drive. If the mobile app isn't available in your state, you can use the plug-in device instead. Debug snapshots are automatically collected when exceptions are thrown in production.NET apps.
Snapshots appear on in the Application Insights portal. You can view debug snapshots in the portal to see the call stack and inspect variables at each call stack frame.
To get a more powerful debugging experience with source code, open snapshots with Visual Studio 2017 Enterprise. In Visual Studio, you can also without waiting for an exception. Snapshot collection is available for: •.NET Framework and ASP.NET applications running.NET Framework 4.5 or later. •.NET Core 2.0 and ASP.NET Core 2.0 applications running on Windows. The following environments are supported: • Azure App Service. • Azure Cloud Service running OS family 4 or later.
• Azure Service Fabric services running on Windows Server 2012 R2 or later. • Azure Virtual Machines running Windows Server 2012 R2 or later. • On-premises virtual or physical machines running Windows Server 2012 R2 or later. Note Client applications (for example, WPF, Windows Forms or UWP) are not supported. Configure snapshot collection for ASP.NET applications •, if you haven't done it yet. • Include the NuGet package in your app. • Review the default options that the package added to: true false 1 3 50 00:15:00 1.00:00:00 1 30 true true 3 • Snapshots are collected only on exceptions that are reported to Application Insights.
In some cases (for example, older versions of the. Firefox Window 10. NET platform), you might need to to see exceptions with snapshots in the portal. Configure snapshot collection for ASP.NET Core 2.0 applications •, if you haven't done it yet.
Important Snapshots can potentially contain personal and other sensitive information in variable and parameter values. Debug snapshots in the Application Insights portal If a snapshot is available for a given exception or a problem ID, an Open Debug Snapshot button appears on the in the Application Insights portal. In the Debug Snapshot view, you see a call stack and a variables pane.