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. Use the set step-mode command to change the default setting.

There are several ways to step through an application. You can choose to step:

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.

You can use the stepping toolbar in the Debug Control view to step through the application either by source line or instruction.

Figure 11. Debug Control view

Debug Control view

To step a specified number of times you must use the Commands view to manually execute one of the stepping commands with a number. For example:

steps 5                            # Execute five source statements
stepi 5                            # Execute five instructions

Show/hideSee also

Copyright © 2010-2012 ARM. All rights reserved.ARM DUI 0446J