| |||
| Home > Controlling execution > Stepping through an application | |||
The debugger enables you to finely control the execution of an image by sequentially stepping through an application at the source level or the instruction level.
You must compile your code with debug information to use the
source level stepping commands. By default, source level calls to
functions with no debug information are stepped over. You can use
the set step-mode command to change the default
setting. You can enter debugger commands in the Commands view.
There are several ways to step through an application. You can choose to step:
into or over all function calls
at source level or instruction level
through multiple statements in a single line of source code, for example a for loop.
Be aware that when stepping at the source level, the debugger uses temporary breakpoints to stop execution at the specified location. These temporary breakpoints might require the use of hardware breakpoints, especially when stepping through code in ROM or Flash. If there are not enough hardware breakpoint resources available, then the debugger displays an error message.
In Eclipse, you can use the stepping toolbar in the Debug Control view to step through the application either by source line or instruction.