Prism 6.0 User's Guide

Enabling and Disabling Events

You can disable and enable events. When you disable an event, Prism keeps it in the event list, but it no longer affects execution. You can subsequently enable it when you once again want it to affect execution. This can be more convenient than deleting events and then redefining them.

For example, this sequence of commands displays the event list, then disables an event, then re-displays the event list:

(prism) show events(1) trace
(2) when stopped { print board }
(prism) disable 1
event 1 disabled
(prism) show events
(1) trace (disabled)
(2) when stopped { print board }

Issue the enable command to enable an event that has been disabled. Specify the ID of the disabled event as the argument.