Setting a Breakpoint in a Method

Use the Breakpoints tab to set a breakpoint in a specified method.

To set a breakpoint in a specified method:

  1. Open the Breakpoints tab in the Debugger.

  2. In the Stop In Method region, type a class name in the Class field.

    For example, if you are setting a breakpoint in the class Circle in the Java package mypkg.shapes, type mypkg.shapes.Circle.

  3. Type a method name in the Method field.

  4. Click the Stop In button.

    The Java WorkShop sets the breakpoint in the first bytecode of the specified method. The Source Editor scrolls to the location of the breakpoint, if the location is in the current file. The line containing the breakpoint is highlighted in red.

    The WorkShop also adds the breakpoint to the list of currently active breakpoints in the Breakpoints tab.


See also:

Introduction to Breakpoints
Setting a Breakpoint in a Line
Setting a Breakpoint in a Class
Breakpoints Tab