Setting a Breakpoint on a Class

When you set a breakpoint on a class (for example, javax.swing.JButton), you can choose to stop the debugger when the class is loaded into the virtual machine, unloaded from the virtual machine, or both.

To set a breakpoint on a class:

  1. From the main menu, choose Debug and choose Add Breakpoint (Ctrl-Shift-F8).
  2. In the Add Breakpoint dialog box, select Class from the Breakpoint Type combo box.
  3. Type the class name in the Class filter text field.
  4. From the Breakpoint set on combo box, determine whether to trigger the breakpoint when the class is loaded into the virtual machine, when the class is unloaded from the virtual machine, or both.
  5. Select the desired actions:
  6. Click OK.

    The breakpoint is added to the list in the Breakpoints tab of the Debugger window.

See also
Setting a Breakpoint on a Line
Setting a Breakpoint on a Method Name
Setting a Breakpoint on an Exception
Setting a Breakpoint on a Thread
Setting a Breakpoint on a Variable

Legal Notices