Sun Studio 12: Debugging a Program With dbx

when Command

The when command has a general syntax as follows:


when event-specification [modifier] {command; ... }

When the event occurs, the commands are executed.

When you get to a line or to a procedure, a command is performed. Depending upon which command is issued, this could alter your program state.

For more information, see when Command.