Debugging a project
-
Set the debug configuration for your project.
-
Select the project in the Project Explorer view.
-
Open the debug configuration in any of these ways:
- Right-click the project and select from the context menu.
- Choose from the menu bar.
- Click an arrow next to
on the toolbar and select Debug
Configurations….
-
In the Debug Configurations dialog box, select the required
debug configuration. The name of the debug configuration is composed of
the project name, debugging interface and build configuration. The
configuration settings appear on the tabs.
-
Modify the configuration settings where required and click
Apply to save the changes.
-
Click Debug. The debugger downloads the program to the
memory of the target processor. The Debug perspective is displayed. The
execution halts at the first statement of the main() function. The
program counter icon on the marker bar points the next statement to be
executed.
-
To set and run to a breakpoint:
-
Double-click on the marker bar next to a statement. The breakpoint
indicator (blue dot) appears next to the statement.
-
From the Debug view, select on the menu bar. The debugger executes all statements up
to (but not including) the breakpoint statement.
-
To control the program:
-
From the Debug view, select from the menu bar. The debugger executes the breakpoint
statement and halts at the next statement.
-
From the Debug view, select from the menu bar. The debugger resumes the program
execution.
-
From the Debug view, select . The debug session ends.