This is where the Presence Debug Tool comes in handy. The Debug Tool allows you to step through the individual Task Elements one by one, examine the information that is passed between them, and view any logging information.
Launching the Debug Tool
To launch the Debug Tool, you first need to have the Task open and the appropriate tab selected. There are three ways to begin debugging the Task:
- Click on the Debug Icon http://www.international-presence.com/wikidocs/images/debug_1.gif
- Right click on the Task Design View (not on a Task Element) and select Debug from the pop-up menu
- Click on the "Task" menu at the top of the Administration Client, and select "Debug Current Task".
There is also a "Debug on..." option for the second and third methods. This allows you to select a server to debug the Task on if you have a multi-server environment.
Using the Debug Tool
Here is a screen-shot of the Debug Tool:
There are four main components to this window.
- Stepping Controls These are at the top of the left hand panel. The controls consist of a Pause, Step, Play, and Fast Play button.
- Context Inspector This is below the Stepping Controls and lets you inspect the current Presence Context
- Task Log Viewer This allows you to view any log output generated by the Task in real time.
- Task View This is a smaller version of the Task, and the Task Element that is about to run will be highlighted.
Pause: This pauses the currently running Task if you have clicked on "Play" or "Fast Play". Step: This executes the currently active Task Element, highlights the next in the sequence, and waits for the user to press Step again. Play This executes the entire Task, highlighting the currently executing Task Element as it proceeds through the sequence. Fast Play This runs the remainder of the Task without any visual feedback as to where in the Task it is currently running.
Task Log Viewer
Presence allows you to add Breakpoints to your Tasks. To do so, in the Task Design View, right click on a Task Element and select "Add Breakpoint" from the pop-up menu.
If you then click on the "Play" or "Fast Play" button, the Task will continue to run until it hits a Breakpoint, at which point it will stop and wait for user interaction.
This feature is especially useful if you want to debug a specific part of Task but do not want to have to step through all the preceding Task Elements.