Table of Contents

Exceptions debugging

WinGDB utilizes GDB catchpoints for exceptions debugging. At the moment WinGDB does support C/C++ exceptions only.

Using the Exceptions dialog

Current WinGDB versions use standard Visual Studio Exceptions dialog (available from Debug menu) to configure exception handling by the debugger. This is available for all Visual Studio versions above 2005. For Visual Studio 2005, see the legacy configuration chapter below.

The Exceptions dialog can be used to configure exception handling for various languages and platforms. WinGDB adds its own entries to the available ones. The dialog looks like this:

Exceptions dialog

To access WinGDB options, scroll down the list and find catetories starting with WinGDB:

In case of custom exceptions and syscalls, you can also delete items from the list using the Delete button.

Caution: if you use the Project mode, your custom exception configuration will be saved by Visual Studio to the suo file, so that you do not need to specify it again during next session. However, in Quick mode there is no suo file and the exception state will not be saved.

Legacy configuration

For Visual Studio 2005 (for which Exceptions dialog extensibility is not supported), you can still use the old method, involving the Exceptions menu. This menu is available only under VS 2005. Use the Exceptions dialog when working with Visual Studio 2008 and above.

To configure exceptions debugging this way, use options in submenu Exceptions which is available in main WinGDB menu.

Exceptions menu


If debugger doesn't support catchpoints or debugged program hasn't been built with exceptions support, then options regarding exceptions will be disabled.

Table of Contents


Copyright (C) 2008-2019 SOFT-ERG. All rights reserved.