Mastering Visual Studio 2017
上QQ阅读APP看书,第一时间看更新

The new exception helper

Handling an exception is the most crucial part for a developer and it becomes frustrating when you are unable to define the cause of the same. Previous versions of Visual Studio do not provide more details about the exception other than a generic contextual UI to the developer in debug mode.

Microsoft worked on a redesigned UI for the exception helper to give you more details of the exception in a compact non-modal dialog with quick access to the inner exception. When there is a NullReferenceException, the new UI shows you what was null. Take a look at the following screenshot that shows antivirusList was null, which caused the issue: