Prism 6.0 User's Guide

Overview of Events

A typical approach to debugging is to stop the execution of a program at different points so that you can perform various actions--for example, check the values of variables. You stop execution by setting a breakpoint. If you perform a trace, execution stops, then automatically continues.

Breakpoints and traces are events. You can specify before the execution of a program begins what events are to take place during execution. When an event occurs:

Prism provides various ways of creating these events--for example, by issuing commands, or by using the mouse in the source window. " Setting Breakpoints" describes how to create breakpoint events; " Tracing Program Execution" describes how to create trace events. " Using the Event Table" describes the Event Table, which provides a unified method for listing, creating, editing, and deleting events.

See " Events Taking Pset Qualifiers (MP Prism Only)" for a discussion of events in MP Prism.

You can define events so that they occur:

Such events are referred to as triggering conditions.

In addition, you can qualify an event as follows:

You can include one or more Prism commands as actions that are to take place as part of the event. For example, using Prism commands, you can define an event that tells Prism to stop at line 25, print the value of x, and do a stack trace.