Setting a Breakpoint on a Method Name

  1. From the main window, choose Debug New Breakpoint (Ctrl-Alt-F8).

  2. In the Add Breakpoint dialog box, open the Breakpoint type combo box and choose Method.

  3. Type the class and method names in the text fields.

  4. To set a condition (so the breakpoint occurs when an expression evaluates to true), type the expression in the Condition text field (available with the JPDA only).

  5. Select the desired actions:
    Suspend debugging temporarily stops all threads in the debugging session when the program reaches the breakpoint.
    Print text prints a message in the Output window when it reaches the breakpoint. You can use a combination of text, substitution codes, curly braces and a dollar sign in the message (for example, {$mywatch}).

  6. Click OK.
See also
Setting a Breakpoint on a Line
Setting a Breakpoint on an Exception
Setting a Breakpoint on a Class
Setting a Breakpoint on a Thread
Setting a Breakpoint on a Variable

Legal Notices