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

Exit Print View

Updated: June 2016
 
 

handler Command

The handler command modifies event handlers (enable, disable, and such). It has identical syntax and identical functionality in native mode and in Java mode.

A handler is created for each event that needs to be managed in a debugging session. The commands trace, stop, and when create handlers. Each of these commands returns a number known as the handler ID (handler-ID). The handler, status, and delete commands manipulate or provide information about handlers in a generic fashion.

Syntax

handler [-enable | -disable] handler-ID ...

Either enable or disable given handlers, specify handler-ID as all for all handlers. Use $firedhandlers instead of handler-ID to disable the handlers that caused the most recent stoppage.

handler -count handler-ID new-limit

Print value of trip counter for given handler.

If a new limit parameter is specified, set new count limit for given event.

handler -reset handler-ID

Reset trip counter for given handler.

where:

handler-ID is the identifier of a handler.