Setting Conditional Watchpoints

Use the Properties view to set a conditional watchpoint. A conditional watchpoint has an associated conditional expression. The debugger evaluates the expression to determine whether to halt program execution at that watchpoint.

A conditional watchpoint behaves in two different ways:

To set a Conditional Watchpoint

  1. Find the watchpoint that you want to associate with a conditional expression in the Breakpoints view
  2. Right-click the watchpoint, then select the Properties menu item
  3. The Properties view appears.

  4. Enter an expression in the Condition text box
  5. During subsequent debugging sessions, the debugger evaluates the expression to determine whether to halt program execution at the conditional watchpoint.

  6. Click OK
  7. The watchpoint's Proeprties window closes.

Related concepts
Related tasks
Related references