# Setting a Conditional Breakpoint

Using the Breakpoints window, you can make your program stop at a breakpoint only when a specified condition is true.

To set a conditional breakpoint:

1. Open the Breakpoints window by choosing Debug -> Breakpoints.
   The JDE Breakpoints window is displayed.
2. Click Show Advanced.
   JDE expands the Breakpoints window.
3. Type a class name in the Class name box.
4. Type either a method name or line number in the Location box.
5. Type an expression value in the Expression box.
   For example, if you want to stop at the breakpoint only when `b == 10`, type `b == 10` in the Expression box.
6. Click Set Breakpoint.
   The breakpoint is set and added to the breakpoints list

   JDE stops at the breakpoint only when the expression has the defined value.

See also:

  Setting a Counted Breakpoint
  Introduction to Breakpoints
  Setting a Breakpoint in a Line
  Setting a Breakpoint in a Method
  Using the Breakpoints Window