# Setting a Counted Breakpoint

Using the Breakpoints window, you can make your program stop when a breakpoint has been hit a defined number of times.

To set a counted 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 a number in the Skip the breakpoint box.
   If you want to set a breakpoint after an expression has been hit a certain number of times, type an expression into the Expression on which to stop box.
6. Click Set Breakpoint.
   JDE sets a breakpoint that stops your program after it has been hit the number of times that you specified in step 5.

See also:

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