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:
- The source file was built within JDE
- The file is a JDK class or source file
- The class is already loaded into memory
To set a breakpoint in a line using the source editor:
- Click in the line where you want the breakpoint to occur.
- 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:
- Choose Debug -> Breakpoints.
- 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).
- Type the line number in the Location box.
- 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