The breakpoint properties are applied to the selected
pattern and its content.
You can cumulate the breakpoint properties. The
conditions are applied in this order:
Break on match failure or
Break on match failure
Conditional
Hit count
Here is a summary of the expected behavior,
during the simulation.
Does this Pattern Match?
Break on Match Success
Break on Match Failure
OCL Condition
Expected Behavior
Yes
No
Activated
Not activated
Activated
Not activated
False
Do not pause
Yes
No
Not activated
Not activated
True
None
Pause
Yes
Activated
Activated
Not activated
True
None
Pause
Yes
Not Activated
Activated
True
False
None
Do not pause
No
Activated
Not activated
Activated
True
None
Pause
No
Activated
Not Activated
True
False
None
Do not pause
To remove the breakpoint, click Breakpoint. The symbols disappear.
Test the Pattern
From the tree, drop the document to be tested onto the dedicated box.
A context bar appears.
The source of the document is displayed.
To perform a test on the eligible elements, click
Play.
The test is performed and stops at the first eligible breakpoint.
An extra context bar appears to enable navigation.
Circular symbols appear on the pattern elements:
Symbol's color
Description
Green
This pattern element matches with the document.
Red
This pattern element does not match with the document.
Two lists appear:
List
Description
Stack
For the pattern element
where the test has paused (because of a breakpoint
or when using the navigation commands), lists the
pattern structure elements that are under
analysis.
Note:
The stack list starts with the
current element, goes on with the analyzed
elements and ends with the entry element of the
pattern. Compared to the graphical view, the
direction of reading is reversed.
Data
When selecting a pattern
element in the Stack list,
displays the elements of the analyzed document
that are under analysis.
Tip:
Select an element in one of these lists to
display details in the properties pane.
Tip:
In the example shown above, the following OCL condition
could be applied to the hasPart pattern's
breakpoint:
In this example, the analyzed document
(specifications.doc) contains the title “INTRODUCTION”. This OCL
condition returns true and the debugger stops at this
breakpoint.
To continue the test to the next eligible element, use the navigation
commands:
Option
Description
Step Into
Runs the test and pauses at the next element to be
analyzed.
This command enables you to perform a step-by-step
analysis.
Step Over
Runs the test and pauses at the next sibling element to
be analyzed.
This command skips the children of the current position.
Important:
The command does not pause at
the children, but they are analyzed. If they do not
match, the command moves back to the prior pattern
element, and runs again to stop at the next element
that can be explored.
Step Out
Runs the test and pauses at the next parent's sibling
element to be analyzed.
This command skips the children and siblings of the
current position.
Important:
The command
does not pause at the children and siblings, but
they are analyzed. If they do not match, the command
moves back to the prior pattern element, and runs
again to stop at the next element that can be
explored.
In the graphical view, two arrows indicate where the test stops.
On the upper left corner of the element
In the left margin
To remove the analyzed document, click Refresh. You can then test this pattern on another
document.