Controlling Program Execution

Once a breakpoint is reached and the program stops, you can control program execution with commands on the Run menu. The following list shows the commands and their actions.

Command Action

Restart Resets execution to the first line of the program. It reloads the program into memory and discards the current values of all variables.
Stop Debugging Terminates the debugging session and returns to a normal editing session.
Go Executes code from the current statement until a breakpoint is reached, a watchpoint expression becomes true, or the end of the program is reached.
Continue to Cursor Executes the program as far as the line that currently has the cursor. This is equivalent to setting a temporary breakpoint at the cursor location.
Trace Into Steps into a function when it is called and steps through all of the instructions in the function.
Step Over Single-steps through instructions in the program. If this command is used when you reach a function call, the function is executed without stepping through the function instructions.
Animate Highlights each line of code in the source window as it is executed. When animation is on, press any key to stop execution. Animation speed is set with the Run/Debug command on the Options menu.