Stepping Through Your Program
Once execution of your program is halted, you can move through
your lines of code using the following Step commands on the Debug menu:
-
Step Over (F8).
Executes one source line. If the source line is a method call,
executes the entire method without stepping through the individual method instructions.
-
Step Into (F7).
Executes one source line. If the source line is a method call,
stops just before executing the first
statement of the method. You can also start a debugging session with
the Step Into (F7) command. Program execution
stops on the first
line after the main method before any changes have been made to
the state of the program.
For information on setting options for stepping into a method, such as the action to perform when the source code is not available, see Setting Java Options for the Debugging Environment.
-
Step Out (Alt-Shift-F7).
Executes one source line. If the source line is part of a method,
executes the remaining lines of the
method and returns control to the caller of the method.
Legal Notices