Running a Program in the Debugger

You can run a program in the debugger with the debugging commands listed in the following table. Your program must be active in the Source Editor or selected in the Explorer

Command Shortcut Description
Debug and choose 
Start Session and choose
Run in Debugger
Alt-F5 or
Start icon
Runs the program until it reaches a breakpoint or exception or until the program terminates normally.
Debug and choose
 Step Into
F7 or
Step Into icon
Runs the program to the first line after the main routine and pauses execution before any changes have been made to the state of the program.
Debug and choose 
Run to Cursor
F5 or
Run to Cursor icon
Runs the program to the cursor location in the Source Editor and pauses the program.
Tip To debug a particular class in a program, and not the entire program, select the class in the Explorer and choose the desired debugging command.
See also
Attaching to a Java VM
Stepping Through Your Program
The Debug Environment

Legal Notices