Setting a Thread Breakpoint
The following instructions are specific to the Java 2 debugger.
To set a breakpoint on a thread:
- From the main menu, choose Debug
New Breakpoint (Ctrl-Shift-F8).
- If your version of the New Breakpoint dialog box includes the Debugger combo box, set the value to Java.
- Set the Breakpoint Type to Thread.
- From the Set Breakpoint On combo box, choose when to trigger
the breakpoint: when a thread starts, stops, or both.
- Specify the actions to take when the breakpoint is triggered:
-
Suspend Debugging. If selected, all threads in the debugged program are temporarily stopped.
- Print Text. If selected, the specified message is printed in the Debugger Console view of the Output window. For information on the tags you can include in the message, see Printing a Breakpoint Message.
- Click OK.
The breakpoint is added to the Breakpoints view of the Debugger
window.
Legal Notices