Managing Exceptions in Visual Studio

You can configure Visual Studio 2008 for exception handling in the Exception Assistant and Exceptions dialog boxes. The Exception Assistant dialog box provides helpful information to developers when an unhandled exception is raised. The Exceptions dialog box manages how the Visual Studio debugger handles exceptions.

The Exception Assistant

The Exception Assistant appears in Visual Studio when an unhandled exception occurs. It displays a translucent frame that partially obfuscates the application code. The source code that prompted the exception is highlighted and tethered to the Exception Assistant dialog box, which is shown in Figure 12-3.

Figure 12-3. The Exception Assistant dialog box for a divide-by-zero exception ...

Get Programming Microsoft® Visual C#® 2008: The Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.