Go to main content
Oracle® Developer Studio 12.5: Debugging a Program with dbx

Exit Print View

Updated: June 2016

watch Command

The watch command evaluates and prints expressions at every stopping point in the scope current at that stop point. Because the expression is not parsed at entry time, the correctness of the expression cannot be immediately verified. The watch command is valid only in native mode.



Print the list of expressions being displayed.

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

Watch the value of expression expression at every stopping point. See print Command for the meaning of these flags.


expression is a valid expression.

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