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](../_images/debug_perspective.png)
Debug Perspective
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](../_images/set_breakpoint.png)
Source File Window in Debug Perspective with Breakpoint Set
Examine Variables, Breakpoints, Expressions or Registers from different tabs of the same debug perspective:
![../_images/registers_window_debug_perspective.png](../_images/registers_window_debug_perspective.png)
Registers Window in Debug Perspective
Examine the debug Views showing the debugger in use:
![../_images/debug_window.png](../_images/debug_window.png)
Debug Window in Debug Perspective
![../_images/debug_console.png](../_images/debug_console.png)
Hello ARC Debug Console in Debug Perspective
Switch Console tabs to view OpenOCD Console output:
![../_images/multiple_consoles.png](../_images/multiple_consoles.png)
Multiple Consoles in the Debug Perspective
![../_images/gdb_console_output.png](../_images/gdb_console_output.png)
Hello ARC Debug Console Output
![../_images/openocd_console_output.png](../_images/openocd_console_output.png)
OpenOCD Console Output
Step through each line by using F5 (step into), and F6 (step over).
![../_images/stepping_toolbar.png](../_images/stepping_toolbar.png)
Stepping Toolbar
Toggle breakpoint at the last line of main(), which is “}” , and then click Resume or press F8.
![../_images/resume_button.png](../_images/resume_button.png)
Click Resume or Press F8
To see the UART output, open Eclipse Terminal view.
![../_images/terminal_output.png](../_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
Terminate all external tools before you quit current debugging process.
![../_images/consoles_for_child_processes.png](../_images/consoles_for_child_processes.png)
Consoles for child processes