Home > .Net, Technical > Easy Way of Examining Exception Details in Visual Studio

Easy Way of Examining Exception Details in Visual Studio

April 16th, 2014

When an exception is raised while debugging an application in Visual Studio, a dialog like the following appears showing a number of options to get more detail on the exception, e.g. the stack trace and line number on which the exception occurred:

One way of digging into the exception to find out more details is to click on the View Detail … link in the dialog. This shows a watch window like view that lets you tunnel into the exception fields.

However, an easy way of scanning all the exception details, is to click the Copy exception detail to the clipboard option, then paste the copied data into Notepad. You then get all the available exception details in a form you can easily scroll through or even search.

  1. No comments yet.
  1. No trackbacks yet.