Java 7 for Absolute Beginners

(nextflipdebug5) #1
CHAPTER 11 ■ DEBUGGING WITH ECLIPSE

Making a Conditional Breakpoint


Another common need is to make a breakpoint conditional:, such that it only triggers when a variable
has a particular value. You can check the values of multiple variables, too.
To set a conditional breakpoint



  1. Right-click the breakpoint you want to be conditional.

  2. Choose BBreakpoint Properties. The Properties window for your breakpoint
    appears (Figure 11-7).


Figure 11-7. Breakpoint Properties window:


  1. Set the EEnable Condition checkbox.

Free download pdf