Changing Watchpoint Condition

The simplest sort of watchpoint breaks every time when value of the watchpoint expression changes. You can also specify a "condition" for a watchpoint. A condition is just a Boolean expression in the mpC programming language. A conditional expression mustnít contain communications, network type conversions and function calls. A watchpoint with a condition evaluates the conditional expression each time value of the watchpoint expression changes, and your program stops only if the condition is TRUE. By default a watchpoint has no conditional expression.

To specify a condition expression for a watchpoint

  1. From the Edit menu, click Watchpoints.

  2. In the Debug Object manager dialog on the Watchpoints tab select the watchpoint you want to modify and click the Modify button.

  3. In the Watchpoint dialog in the Condition text box, type an expression, such as x==3, that evaluates to true or false, or change the existing expression.

See also:

Setting watchpoints