Microsoft

Performance Improvement When Debugging .NET Code With Visual Studio 2015

Feb 23, 2015Andrew B Hall - MSFT
Performance Improvement When Debugging .NET Code With Visual Studio 2015
SummaryAI, from the source post

This post details a significant performance improvement in Visual Studio 2015 when debugging .NET applications running on .NET 4.6 or newer. The improvement specifically addresses the overhead caused by handled exceptions occurring in non-user code (i.e., code excluded by the 'Just My Code' setting). By optimizing how the debugger handles these exceptions, the execution time for scenarios with many handled exceptions in external libraries can be reduced by up to 97%. This change is achieved by modifying how the .NET runtime notifies the debugger about exceptions thrown and handled outside of the user's code when 'Just My Code' is enabled. The post also notes that this change will prevent exceptions thrown and handled outside of user code from appearing in the IntelliTrace events view.

More from the Asynchronous Code Debugging Enhancements trail