Sun Studio 12 Update 1: Debugging a Program With dbx

Syntax

watch

Print the list of expressions being displayed.

watch expression

Watch the value of expression expression at every stopping point.

watch [-r|+r|-d|+d|-p|+p|-L|-fformat|-Fformat|--] expression

See print Command for the meaning of these flags.

where:

expression is a valid expression.

format is the output format you want used to print the expression. For information on valid formats, see print Command.