You can debug an application at a higher level of abstraction
by setting breakpoints on UML elements in a model. You can set breakpoints
on operations, states, or transitions; however, these UML elements
must have user-defined code associated with them.
Before you begin
Before you can set a breakpoint on a model element, the corresponding
diagram must be open in the UML Development perspective, and the element
must have associated user-entered code.
About this task
To set a breakpoint on a model element, complete one of
the following steps:
- To set a breakpoint on an operation, in the class diagram, right-click
the operation; then click .
- To set a breakpoint on a state, in the state machine diagram,
right-click the state; then click , and click
either Entry or Exit.
- To set a breakpoint on a transition, in the state machine diagram,
right-click the transition; then click , and click
either Guard or Effect.
Results
A small circle icon is displayed on the model element that
contains the breakpoint, and the breakpoint is listed in the
Breakpoints view.
Tip: To disable a breakpoint, right-click the element; then
click .
Note: If
you set breakpoints in a model that was already built into target
code, toggling or disabling a breakpoint in the model toggles or disables
the corresponding source breakpoint in the code.