Setting Watchpoints

You can use a watchpoint to stop execution whenever the value of an expression changes, without having to predict a particular place where this may happen. The expression can be a variable, a function call, or any other valid mpC expression.

To set a watchpoint at design time or in break mode

In the Text Editor window, move the insertion point to the line of code where you want to set a watchpoint and right-click in the selection margin.

From the context menu choose:

When you set a watchpoint, an oval is displayed in the selection margin of the Text Editor window next to the line containing the watchpoint. The oval is cyan if the watchpoint is enabled and gray if disabled.

See also:

Watchpoints overview