Setting and Executing a Policy
With Breakpoints
The Policy Testing Console enables
you to apply breakpoints to any objects in a Policy. This enables
you to pause the execution before continuing to the next object
that you applied a breakpoint to.
Use this method when you know which
objects in a Policy you want to focus on.
To set a breakpoint:
1.
|
Open a Policy in the Policy Testing
Console.
|
2.
|
Select an object where you want
the execution to pause and click the Breakpoint button on the button bar.
The object icon displays a marker on it to indicate that it is a
breakpoint. Apply breakpoints to as many objects as you
require.
|
Figure VIII: The Breakpoint
button
Figure IX: The breakpoint marker
on an object
Tip: You can add or remove breakpoints
while the execution of the Policy is paused.
Note: The Policy Testing Console does
not save breakpoints when you close it.
To execute a Policy with
breakpoints:
1.
|
When you have finished applying
breakpoints, click the Run
button on the toolbar.
|
2.
|
The Policy pauses at the
breakpoint and displays the following information:
|
•
|
Run-time information for the
object that is currently being executed by the Policy Testing
Console appears in the Run Time
Properties pane.
|
•
|
The content of the Properties dialog of the object appears
in the Design Time
Properties pane of whatever
object you have selected. If you have not selected an object, no
information appears in this pane.
|
3.
|
To execute the Policy until the
next breakpoint, click Run.
Published Data items that each object generates appear in the
object entry in the Log
pane. If this data is not visible, click Show Details.
|
4.
|
To stop executing the Policy,
click the Stop button on
the button bar.
|