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 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) | ![]() |
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) | ![]() |
Stops the debugger. |
Continue (F5) | ![]() |
Runs the program until it reaches the next breakpoint or until the program terminates normally. |
Alternatively, select the project in the projects window and choose Debug > Debug Project in the main menu.
The IDE runs the project in the debugger until execution stops or a breakpoint is reached.
The IDE runs the file in the debugger until execution stops or a breakpoint is reached.