Sun Studio 12: Debugging a Program With dbx

Enabling a Breakpoint After an Event Occurs

Enable a breakpoint only after another event has occurred. For example, if your program begins to execute incorrectly in function hash, but only after the 1300’th symbol lookup, you would type:

(dbx) when in lookup -count 1300 {
    stop in hash
    when proc_gone -temp { delete $hash_bpt; }

Note –

$newhandlerid is referring to the just executed stop incommand.