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

Debugging commands in the Debug menu are generally run on the main project, and when debugging a project it is recommended that you set the project as the main project.

If no project is set as the main project the Debug Project command is run on the project that is selected in the Projects window and the commands begin the debugging session in the main class of the selected project.

The following table displays the commands in the Debug menu and the corresponding toolbar icons for starting and stopping the debugger.

Command Icon Description
Debug Project (Ctrl-F5) Start Debugger icon Starts the debugger and runs the program until it reaches a breakpoint or exception or until the program terminates normally.
Finish Debugger Session (Shift-F5) Stop Debugger icon Stops the debugger.
Continue (F5) Continue Debugger icon Runs the program until it reaches the next breakpoint or until the program terminates normally.

Debugging an Individual Project

Debugging an Individual File

See Also
Setting a Java Breakpoint
Stepping Through Your Program in the Java Debugger
Starting a Remote Debugging Session
Attaching Source Code to a JAR File
Setting the Main Project

Legal Notices