07.42 The Exceptions Dialog Box

DEFAULT

Ctrl+Alt+E

VISUAL BASIC 6

Ctrl+Alt+E

VISUAL C# 2005

Ctrl+Alt+E; Ctrl+D, Ctrl+E; Ctrl+D, E

VISUAL C++ 2

Ctrl+Alt+E

VISUAL C++ 6

Ctrl+Alt+E

VISUAL STUDIO 6

Ctrl+Alt+E

WINDOWS

Alt,D, X

MENU

Debug | Exceptions

COMMAND

Debug.Exceptions

VERSIONS

2005, 2008, 2010

CODE

vstipDebug0039

By default, Visual Studio breaks only when an exception is not handled by user code. This can sometimes be problematic because the exception can bubble up through several calls far away from where the actual exception originally occurred, making it harder to find the problem.

You can use the Exceptions dialog box (Ctrl+Alt+E) to configure exceptions to break when they happen rather than checking to see whether they are unhandled:

The exceptions ...

Get Coding Faster: Getting More Productive with Microsoft® Visual Studio® 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.