Select the Method Exit option to suspend execution when the method associated with the breakpoint is exited.
This option can be changed with the
Breakpoint Properties..., or by
right-clicking a method breakpoint.
Setting method breakpoints
Launching a Java program
Running and debugging