| |||
| Home > ARM Debuggers for Windows and UNIX > Breakpoints, watchpoints, and stepping > Stepping through an image | |||
To follow the execution of a program more closely than breakpoints or watchpoints allow, you can step through the code in the following ways:
Step to the the next line of code in either of the following ways:
select Step from the Execute menu

click the Step button.
The program moves to the next line of code, which is highlighted in the Execution window. Function calls are treated as one statement.
If only C code is displayed, Step moves to the next line of C. If disassembled code is shown (possibly interleaved with C source), Step moves to the next line of disassembled code.
Step in to a function call in either of the following ways:
select Step In from the Execute menu

click the Step In button.
The program moves to the next line of code. If the code is in a called function, the function source appears in the Execution window, with the current line highlighted.
Step out of a function in either of the following ways:
select Step Out from the Execute menu

click the Step Out button.
The program completes execution of the function and halts at the line immediately following the function call.
Follow these steps to execute your program to a specific line in the source code:
Position the cursor in the line where execution should stop.
Select Run to Cursor from the Execute menu or

click the Run to Cursor button.
This executes the code between the current execution and the position of the cursor.
Be sure that the execution path includes the statement selected with the cursor.