Sun Studio 12: Debugging a Program With dbx

Stopping Execution on a Condition

To stop program execution if a conditional statement evaluates to true, type:

(dbx) stop cond condition

The program stops executing when the condition occurs.

Keep these points in mind when using the stop cond command:

For more information on specifying a condition event, see cond condition-expression and stop Command.