## Creating Conditional Breakpoints

Use the Properties for Breakpoint > Common > Conditional option to create conditional breakpoints. Where regular breakpoints suspend execution each time they are hit, a condition breakpoint evaluates an expression to determine if it is true or not. If the expression evaluates true, then program execuation is suspended and the Debug perpective shown. If the expression evaluates to false, execution continues.

Figure 1. Condition field in Properties for Breakpoint window

You create a conditional breakpoint in the Conditional field by entering a valid expression. Valid expressions include:

- meters == 10
- height >= 5
- count != 10

When creating the expression some things to consider include:

- expressions must evaluate to true
- the value being examined must be within the scope of the function
- normal syntax rules apply when creating the expression
- only a single expression can be evaluated within the Condition field
- function and method calls cannot be used as part of the expression

#### Other references

- Breakpoints overview