Go to main content
Oracle® Developer Studio 12.5: Debugging a Program with dbx

Exit Print View

Updated: June 2016
 
 

intercept Command

The intercept command throws (C++ exceptions) of the given type (C++ only). It is valid only in native mode.

dbx stops when the type of a thrown exception matches a type on the intercept list unless the type of the exception also matches a type on the excluded list. A thrown exception for which there is no matching catch is called an “unhandled” throw. A thrown exception that does not match the exception specification of the function it is thrown from is called an “unexpected” throw.

Unhandled and unexpected throws are intercepted by default.

Syntax

intercept -x excluded-typename [, excluded-typename ...]

Add throws of excluded-typename to the excluded list.

intercept -a[ll] -x excluded-typename [, excluded-typename...]

Add all types except excluded-typename to the intercept list.

intercept -s[et] [intercepted-typename [, intercepted-typename ...]] [-x excluded-typename [, excluded-typename]]

Clear both the intercept list and the excluded list, and set the lists to intercept or exclude only throws of the specified types.

intercept

List intercepted types.

where:

included-typename and excluded-typename are exception type specifications such as List <int> or unsigned short.