Managing conditional breakpoints

  1. Do one of the following sets of tasks:
  2. A Breakpoint properties dialog will open.
  3. In the properties dialog, check the Enable Condition checkbox. To disable the condition, uncheck this checkbox.
  4. In the Condition field enter the boolean expression for the breakpoint condition.
  5. Click Ok to close the dialog and commit the changes.
  6. While the breakpoint is enabled, thread execution suspends before that line of code is executed if the breakpoint condition evaluates to true. The debugger selects the thread that has suspended and displays the stack frames on that thread's stack. The line where the breakpoint was set is highlighted in the editor in the Debug perspective.
    A conditional breakpoint has a question mark overlay on the breakpoint icon.

    Related concepts

    Debugger
    Java perspectives
    Java editor

    Related tasks

    Adding breakpoints
    Applying hit counts
    Catching Java exceptions
    Removing breakpoints
    Setting method breakpoints
    Stepping through the execution of a program

    Related reference

    Breakpoints view

     

     
     Copyright IBM Corporation 2000, 2002. All Rights Reserved.