IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Developing monitor models

Debugging monitor models

If you find a problem while testing your monitor model or if you just want to understand how your monitor model gathers information, use the debugger that is included with the IBM Business Monitor development toolkit.

You can submit events to a version of your monitor model that is running in the debugger, and manually step through the processing to understand what happens when each event arrives.

The debugger provides a representation of all of the operations performed on monitor model elements, such as updating metrics, evaluating triggers, starting and stopping stopwatches, and incrementing counters. You can set breakpoints to stop at points of interest. Then you can step through the operations and inspect the current state of a monitoring context instance as it is being updated.

Debugging a monitor model helps you understand the runtime behavior of the monitor model. You can see the order in which steps are processed for each inbound event. You can verify if expressions are being calculated correctly, metrics and key performance indicators (KPIs) are being updated properly, triggers are firing as expected, and events are being received or filtered out as planned.

You can examine the evaluation of a complex expression as metrics are updated, or the calculation of KPIs as the underlying metrics are set or changed.

You can find the cause of problems such as:

No values showing up in the dashboard space.

Maybe the events are not being emitted, or maybe none of the events is satisfying the filter condition to reach a monitoring context.

Incorrect values being shown in the dashboard space.

One or more metrics, stopwatches, counters, KPIs, or measures are not being updated properly.

Outbound events not being sent.

You can debug the model to see why the events are not being emitted.

You can also inspect the content of outbound events before they are emitted to see if they contain all the necessary information and are formatted as you expect.

Even when there are no problems, you might want to step through the operations of a new monitor model in the debugger before it is deployed. You will improve your understanding of how monitor models operate at run time, and you might also uncover problems or detect behavior that you did not expect.

Developing monitor models