5.16 Step Through Code
Use one of the stepping functions on the Debug menu and Debug toolbar to move through code after a program halt. Examine changes in variable values (see next section) or determine if the program flow is correct.
There are several ways to step through code:
Step Over – Executes one source line of a program. If the line is a function call, it executes the entire function and stops. | |
Step Into – Executes one source line of a program. If the line is a function call, it executes the program up to the function’s first statement and stops. | |
Step Out – Executes one source line of a program. If the line is a function call, it executes the functions and returns control to the caller. | |
Run to Cursor – Runs the current project to the cursor’s location in the file and stops program execution. |
In addition to the Editor window, you can single-step through code in the Disassembly window (8.2 Disassembly Window and Listing File) and Program/Execution Memory window.