Using Debug Perspective

The Debug perspective provides an integrated debug environment with individual windows to display various debugging data such as the debug stack, variables, registers breakpoints, etc.

../_images/debug_perspective.png

Debug Perspective

  1. To set a breakpoint, place your cursor on the marker bar along the left edge of the editor window on the line where you want the breakpoint:

../_images/set_breakpoint.png

Source File Window in Debug Perspective with Breakpoint Set

  1. Examine Variables, Breakpoints, Expressions or Registers from different tabs of the same debug perspective:

../_images/registers_window_debug_perspective.png

Registers Window in Debug Perspective

  1. Examine the debug Views showing the debugger in use:

../_images/debug_window.png

Debug Window in Debug Perspective

../_images/debug_console.png

Hello ARC Debug Console in Debug Perspective

  1. Switch Console tabs to view OpenOCD Console output:

../_images/multiple_consoles.png

Multiple Consoles in the Debug Perspective

../_images/gdb_console_output.png

Hello ARC Debug Console Output

../_images/openocd_console_output.png

OpenOCD Console Output

  1. Step through each line by using F5 (step into), and F6 (step over).

../_images/stepping_toolbar.png

Stepping Toolbar

  1. Toggle breakpoint at the last line of main(), which is “}” , and then click Resume or press F8.

../_images/resume_button.png

Click Resume or Press F8

  1. To see the UART output, open Eclipse Terminal view.

../_images/terminal_output.png

Final Output Printed to Serial Terminal Window through UART

You will be able to see the output in the Terminal view only if COM port specified in Terminal tab of Debug Configurations dialog is right. Read more about specifying a COM port Setting a COM port

  1. Terminate all external tools before you quit current debugging process.

../_images/consoles_for_child_processes.png

Consoles for child processes