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:
- Open the Breakpoints window by choosing Debug -> Breakpoints.
The JDE Breakpoints window is displayed.
- Click Show Advanced.
JDE expands the Breakpoints window.
- Type a class name in the Class name box.
- Type either a method name or line number in the Location box.
- 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.
- 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