Breakpoint Dialog Box: Class
See Also
You use this dialog box to set the properties of a class breakpoint.
You can set class breakpoint properties when you set a new breakpoint or when modifying an
existing breakpoint.
- To set a new class breakpoint, choose Debug > New Breakpoint
(Ctrl-Shift-F8) from the main menu, then select Class from the Breakpoint Type drop-down list.
- To customize an existing class breakpoint, right-click the class breakpoint in the
Breakpoints window and choose Customize.
- If the fields in the dialog box are already filled in,
the information is based on the location of the insertion point in the Source Editor.
You can set the following values:
- Settings.
- Class Name. The name of the class file you want the
debugger to stop on. You can use an asterisk (*) as a suffix
to specify more than one class. For example,
if you specify java.lang*, the
breakpoint applies to any class from the package java.lang.
You can then use the Exclude Classes condition to specify certain classes that
do not trigger the breakpoint.
- Stop On. Select which of the following triggers the breakpoint.
- Class Load. The breakpoint is triggered when the
class is loaded into the virtual machine.
- Class Unload. The breakpoint is triggered when the
class is unloaded from the virtual machine.
- Class Load or Unload. The breakpoint is triggered
when the class is loaded and when it is unloaded from the virtual machine.
- Conditions
- Exclude Classes. When selected, enables you to specify classes to exclude.
Excluded classes do not trigger the breakpoint when they are loaded.
If not selected, the breakpoint is triggered by any classes matching the Class Name setting.
You can use an asterisk (*) as a suffix to exclude more than one class.
For example, specify java.lang* to exclude all classes from the package java.lang.
You can specify multiple patterns by separating the patterns with a comma or a space
(java.net.URLClassLoader*, java.lang.ClassLoader).
- Break when hit count. When selected, enables you to specify how frequently the breakpoint is triggered.
Choose a criteria in the drop-down list and then specify a numerical value.
- Actions. The actions to take when the breakpoint is triggered.
- Suspend. Specifies which threads in the program
being debugged are suspended when the breakpoint is reached.
You can specify no threads, all threads, or the breakpoint
thread. The breakpoint thread is the thread that is current
when the breakpoint is reached.
- Print Text. 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.
- See Also
- New Breakpoint Dialog Box
- Setting a Java Breakpoint
- Breakpoints in the IDE
-
Legal Notices