Debugging a Program With dbx

handler

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 (hid). The handler, status, and delete commands manipulate or provide information about handlers in a generic fashion.


handler [ -disable | -enable ] all hid
 [...]

handler -disable hid disables the specified event.

handler -disable all disables all handlers.

handler -enable hid enables the specified handler.

handler -enable all enables all handlers.


handler [ -count hid  [new-count-limit
] | -reset  hid ]

handler -count hid returns the count of the event in the form current-count/limit (same as printed by status). limit might be the keyword infinity. Use the ksh modifiers ${#} and ${##} to split the printed value.

handler -count hid new-count-limit assigns a new count limit to the given handler.

handler -reset hid resets the count of the handler to 0 (zero).