You copied the Doc URL to your clipboard.

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.

Debug Control view

play_button - Click to continue running the application after loading it on the target.

pause_button - Click to interrupt or pause executing code.

step_through_button - Click to step through the code.

step_over_button - Click to step over a source line.

step_out_button - Click to step out.

step_instruction_button - 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

    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

    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

    Code Editor view

  • Disassembly view shows the built program as assembly instructions, and their memory location.

    Figure 5-13 Disassembly view

    Disassembly view

    blue_arrow_button 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:

    1. Open the Memory view.
    2. In the Address field, enter &main and press Enter on your keyboard. The view displays the contents of the target's memory.
    3. Select and highlight the words Hello World.

      Figure 5-14 Memory view

      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.

Was this page helpful? Yes No