Handling Exceptions in the Debugger

The .NET runtime has a comprehensive exception handling facility, and both C# and Visual Basic .NET are able to take advantage of it. Chapter 2 describes exception syntax in more detail. When an application is being debugged, the developer can configure the debugging environment to handle exceptions in a number of different ways. For each exception (or group of exceptions), you can specify how the debugger should behave both when the exception is thrown and when the exception is not handled.

  • When the exception is thrown, the application can break into the debugger or it can continue running. Breaking into the debugger when the exception is thrown will allow you to catch an exception before any exception handling ...

Get Microsoft® .NET Compact Framework (Core Reference) 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.