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.
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:
Examine Variables, Breakpoints, Expressions or Registers from different tabs of the same debug perspective:
Examine the debug Views showing the debugger in use:
Switch Console tabs to view OpenOCD Console output:
Step through each line by using F5 (step into), and F6 (step over).
Toggle breakpoint at the last line of main(), which is “}” , and then click Resume or press F8.
To see the UART output, open Eclipse Terminal view.
Terminate all external tools before you quit current debugging process.