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.
All of the debugging commands in the Debug 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 |
---|---|---|
Debug > Debug Main Project | Ctrl-F5 or ![]() |
Runs the program until it reaches a breakpoint or exception or until the program terminates normally. |
Debug > Step Into | F7 or ![]() |
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 > Run to Cursor | F4 or ![]() |
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. |
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.