Starting a Local Debugging Session

See Also

Local debugging is the process of debugging a program that is running on the same computer as the IDE. The IDE starts the debugger, then runs the application inside the debugger. When you start a debugging session, the IDE automatically opens the debugger windows and prints debugger output to the Output window.

Debugging the Main Project

All of the debugging commands in the Run menu are run on the main project. No matter what file or project is selected in the Projects window or Source Editor, these commands begin the debugging session in the main class of the main project.

Command Shortcut Description
Run > Debug Main Project Ctrl-F5 or Start icon Runs the program until it reaches a breakpoint or exception or until the program terminates normally.
Run > 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.
Run > Run to Cursor F4 or Run to Cursor icon Runs the program to the cursor location in the Source Editor and pauses the program. The file you have selected in the Source Editor must be called from the main class of the main project.

Debugging an Individual Project

Debugging an Individual File

See Also
Setting a Java Breakpoint
Starting a Remote Debugging Session
Attaching Source Code to a JAR File

Legal Notices