Application debug with Arm Debugger
Now that you have created a debug configuration and the application is loaded on the target, it is time to start debugging and stepping through your application.
Running and stepping through the application
Use the controls provided in the Debug Control view to debug your application. By default, these controls do source level stepping.

- Click to continue running the application after loading it on the target.
- Click to interrupt or pause executing code.
- Click to step through the code.
- Click to step over a source line.
- Click to step out.
- This is a toggle. Click this to toggle between stepping instructions and stepping source code. This applies to the above step controls.
Other views display information relevant to the debug connection
-
Target Console view displays the application output.
Figure 5-10 Target console output
-
Commands view displays messages output by the debugger. Also use this view to enter Arm® Debugger commands.
Figure 5-11 Commands view
-
C/C++ Editor view shows the active C, C++, or Makefile. The view updates when you edit these files.
Figure 5-12 Code Editor view
-
Disassembly view shows the built program as assembly instructions, and their memory location.
Figure 5-13 Disassembly view
indicates the location in the code where your program is stopped. In this case, it is at the
main()
function.
-
Memory view shows how the code is represented in the target memory. For example, to view how the string
Hello World
from the application is represented in memory:- Open the Memory view.
- In the Address field, enter
&main
and press Enter on your keyboard. The view displays the contents of the target's memory. -
Select and highlight the words Hello World.
Figure 5-14 Memory view
In the above example, the Memory view displays the hexadecimal values for the code and the ASCII character encoding of the memory values, which enable you to view the details of the code.
After completing your debug activities, you can disconnect the target.