Setting a Thread Breakpoint

The following instructions are specific to the Java 2 debugger.

To set a breakpoint on a thread:

  1. From the main menu, choose Debug and choose New Breakpoint (Ctrl-Shift-F8).
  2. If your version of the New Breakpoint dialog box includes the Debugger combo box, set the value to Java.
  3. Set the Breakpoint Type to Thread.
  4. From the Set Breakpoint On combo box, choose when to trigger the breakpoint: when a thread starts, stops, or both.
  5. Specify the actions to take when the breakpoint is triggered:
  6. Click OK.

    The breakpoint is added to the Breakpoints view of the Debugger window.

See also
Setting a Line Breakpoint
Setting a Method Breakpoint
Setting an Exception Breakpoint
Setting a Class Breakpoint
Setting a Variable Breakpoint

Legal Notices