Microsoft

Using the DebuggerNonUserCode Attribute in Visual Studio 2015

Feb 12, 2016Aaron Hallberg
Using the DebuggerNonUserCode Attribute in Visual Studio 2015
SummaryAI, from the source post

This post details a workaround for a performance improvement in Visual Studio 2015 that impacted exception behavior for the DebuggerNonUserCode attribute. The performance feature reduced overhead by not notifying the debugger of exceptions thrown and caught within attributed code when 'Just My Code' was enabled. The workaround involves a registry key modification to disable this performance feature, restoring the previous behavior of breaking on exceptions within DebuggerNonUserCode methods. It also clarifies the differences between DebuggerNonUserCode, DebuggerStepThrough, and DebuggerHidden attributes.

More from the Asynchronous Code Debugging Enhancements trail