Setting a Breakpoint in a Line

You can set a breakpoint in a line of source code either by clicking the Breakpoint button or using the Breakpoints window.

To set and remove breakpoints using the source editor, your source file must meet one of the following conditions:

To set a breakpoint in a line using the source editor:

  1. Click in the line where you want the breakpoint to occur.
  2. Click the Breakpoint button in the Edit/Debug toolbar.
    JDE sets a breakpoint in the specified line and highlights the line in red.

To set a breakpoint in a line using the Breakpoints window:

  1. Choose Debug -> Breakpoints.
  2. Type the class name in the Class name box.
    If the class is part of a package, type the full class name, including the package (for example, sun.jws.html.Paint).
  3. Type the line number in the Location box.
  4. Click Set Breakpoint.

See also:

Introduction to Breakpoints
Setting a Breakpoint in a Method
Setting a Conditional Breakpoint
Setting a Counted Breakpoint
Using the Breakpoints Window