New Breakpoint Dialog Box

See Also

The New Breakpoint dialog box enables you to set a breakpoint in your code in order to stop execution of your program. You can open this dialog box by choosing Debug and choosing New Breakpoint. The following table describes the breakpoint types for the Java 2 debugger.

Type Description
Line The easiest way to set a breakpoint on a line is from within the Source Editor. Click the left margin adjacent to the line where you want to set your breakpoint. Use the New Breakpoint dialog box if you want to specify an action to perform when the breakpoint is hit or to trigger the breakpoint only when a specified condition is met. See Setting a Line Breakpoint for a description of the settings and actions that apply to this breakpoint type.
Method When you set a breakpoint on a method name, program execution stops every time the method is executed. See Setting a Method Breakpoint for a description of the settings and actions that apply to this breakpoint type.
Exception You can break whenever a specific exception is caught, whenever a specific exception is not handled in the source code, or whenever any exception is encountered regardless of whether the program handles the error or not. See Setting an Exception Breakpoint for a description of the settings and actions that apply to this breakpoint type.
Variable You can stop execution of your program whenever a variable in a specific class and field is accessed (for example, the method was called with the variable as an argument) or modified. See Setting a Variable Breakpoint for a description of the settings and actions that apply to this breakpoint type.
Thread You can break program execution whenever a thread starts, stops, or both. See Setting a Thread Breakpoint for a description of the settings and actions that apply to this breakpoint type.
Class When you set a breakpoint on a class, you can stop the debugger when the class is loaded into the virtual machine, unloaded from the virtual machine, or both. See Setting a Class Breakpoint for a description of the settings and actions that apply to this breakpoint type.
See Also
Setting a Condition on a Breakpoint
Printing a Breakpoint Message

Legal Notices