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:
- 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 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.
- 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