| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (7 out of 10)

Debugging Individual Items

Variables, parameters, rules, and procedures have an attribute named Tracing-and-breakpoints, which controls the messages and breakpoints that G2 displays for a particular item. The default value of this attribute is default, which means that the item uses the values of the Warning-message-level, Tracing-message-level, and Breakpoint-level attributes in the Debugging Parameters system table.

You can specify any combination of warning messages, tracing messages, and breakpoints for individual items by using this syntax:

The message and breakpoint levels available are the same as those in the Debugging Parameters system table. If you specify more than one statement, separate the statements with a semi-colon.

For example, you might specify this attribute as follows:

In this example, G2 provides no warning messages and level 3 trace messages for this item. Because the breakpoint level is not specified, G2 uses the default from the Debugging Parameters system table.

The Tracing-and-breakpoints attribute overrides the parameters in the Debugging Parameters system table for the evaluation of this particular rule, variable, formula, or function. However, this attribute does not take precedence over the Tracing-and-breakpoints-enabled? attribute, which controls whether tracing messages or breakpoints are enabled.

| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (7 out of 10)

Copyright © 1997 Gensym Corporation, Inc.