You can set breakpoints on any line in the code for operations,
states, or transitions in UML development models. After you build
the target code for a model, you can display the code for the UML
elements in the Code view and then set the required
breakpoints.
Before you begin
Before you set breakpoints in the code for UML elements, build
the model project to generate the source code.
About this task
To set a breakpoint on source code:
Procedure
In the Code view, right-click in the
area to the left of the line where you want to suspend the program;
then click Toggle Breakpoint. If
the model is not built, the code does not reflect the source code.
A warning is displayed that instructs you to run the transformation
configuration before setting the breakpoint. When you run the transformation
configuration, a breakpoint is set on the selected line and the source
files are generated.
Results
A small circle icon is displayed beside the line of code,
a C++ breakpoint is created in the source code, and the breakpoint
is listed in the
Breakpoints view.
Tip: To
delete a breakpoint, right-click the selected line; then click Toggle
Breakpoint. To disable a breakpoint, right-click the selected
line; then click Disable Breakpoint.