Conditional Breakpoints

You can create an expression to apply to any breakpoint, both code and data. For example, you might want a breakpoint to trigger only if a variable has a certain value or is above a certain level.

To apply a condition to a breakpoint:

  1. Click the Breakpoint Properties tool in the toolbar.

The Breakpoint Properties dialog will open.

  1. Select the Conditional Breakpoint check box.
  2. Click OK.

A question mark will appear in the breakpoint symbol, and a field will open to allow you to enter an expression in the action window.

  1. Enter a valid expression in the field, such as Name == "AI20_1".
  2. Click OK to the right of the field.