![visual studio 2017 for mac debug visual studio 2017 for mac debug](https://i.stack.imgur.com/TxoL0.jpg)
Prior to attaching the Snapshot Debugger, the average response time for my server was between 2.0 and 2.4 seconds, and the throughput was between ~3,400 and ~4,000 requests per second. However, even when I started Snapshot Debugging, the performance and throughput did not degrade. I then opened the resulting Snapshot and spent the remaining three minutes inspecting variables and the state at the point of time the snapshot was captured.ĭuring the load test, my Azure App Service plan was hovering at 80-90% CPU Usage.
![visual studio 2017 for mac debug visual studio 2017 for mac debug](https://code.visualstudio.com/assets/blogs/2016/08/22/ios-debugger-splash.png)
Roughly two minutes into the test, I attached the Snapshot Debugger and set a Snappoint that is hit in the MusicStore app’s home page. In a 5-minute load test, I simulated 1,000 users continuously hitting an Azure App Service running the MusicStore ASP.NET Core app. I ran a performance load test to measure the impact of Snapshot Debugging on a deployed app. In the rest of this blog post, we’ll measure the performance impact of using the Snapshot Debugger against a live app with a quick case study using performance load testing. Snapshot Debugging has almost no performance impact on the performance of your production service or the experience end users see while using your application. Additionally, you can capture snapshots automatically when exceptions happen in your app by setting up Application Insights.
#Visual studio 2017 for mac debug code#
You can capture snapshots at specified lines of code in by using Snappoints, as shown below. You can read a further overview of how the Snapshot Debugger can be used effectively in production here. This means that you can debug the actual live, running app, without impacting the experience your customers have while using the app. While traditional breakpoints would halt your live server when hit and stop it from serving requests Snappoints quickly capture state, including locals, watches, and the call stack while your app continues to run. The Snapshot Debugger works by taking a snapshot of the state of your app at specified lines of code where you set Snappoints. The Snapshot Debugger enables a safe, non-invasive way for you to use the Visual Studio debugger you know and love directly against the production environment in Azure where the issue is happening. Often, the logs may be insufficient, or a local repro may be hard if not impossible to setup. If an issue happens in production, you may find yourself digging through logs or attempting to repro the issue in a local environment.
![visual studio 2017 for mac debug visual studio 2017 for mac debug](https://unity.com/sites/default/files/styles/810_scale_width/public/2020-02/unity-tips-visual-studio-update.jpg)
With the general availability of Visual Studio 2017 Enterprise 15.5 this week, Snapshot Debugger is now available for you to get started. Earlier this year we previewed the Snapshot Debugger, a tool that enables you to debug web apps running in production in Azure.