IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Developing monitor models > Debugging monitor models > Starting the debugger
Configure the debugger
The debugger has some general parameters you can set to determine how time is handled and whether the event queue and monitoring context instances from the previous session are cleared before you start a new debugging session. These preferences are used as the default settings for each monitor model launch configuration. In particular, these are the settings used when you select Debug Monitor Model or Debug As > Monitor Model.
To configure the debugger:
Procedure
- From the main menu bar, click Windows > Preferences > Business Monitoring > Monitor Model Debugger.
- To prevent the Debug perspective from opening by default when you launch the debugger on a monitor model, clear the Always switch to the debug perspective after launching the debugger check box. After you clear the check box, the general preferences for perspective settings apply. For more control over when the perspective opens, navigate in the Preferences list to Run/Debug > Perspectives. On that page, you can choose to switch automatically to the associated perspective when an application launches or is suspended, or only when you answer Yes to a prompt.
- To set the Monitor test environment server to be used for the debugger, select the server from the list.
- Select whether the current time value for the debugger should be based on the time value of the incoming events or on the time from the system clock. By default, the time is based on the creationTime attribute of the incoming events.
This option sets the time used by the debugger for stopwatches and for any date or time functions used in expressions. If you select From incoming event, the start time and stop time of any stopwatches are based on the value of the creationTime attribute of the inbound events that start and stop the stopwatch. If you select From system clock, the start time and stop time are based on the server time.For example, if the server is down for an hour after a stopwatch starts, the stopwatch elapsed time will include that hour.
- To keep the input queue of incoming events as well as any remaining monitoring context instances from the previous debugging session, clear the Clear data from previous debug sessions check box. If you clear this option, the input queue and any instances remain when a new debugging session is launched. By default, the input queue and instances are cleared when you launch a new session.
Clear the data when:
- Your test case requires that you start from a known state.
- Keeping the previous data might affect the behavior of your test case.
Keep the data when:
- The current data do not affect your test case.
- Your test case is better served by having more data.
- You are taking an incremental approach to debugging.
- Your test cases are logically connected to each other.
If you click the Ask for confirmation before clearing check box, you will be prompted to make a decision every time you launch a debugging session for your monitor model.