The Debugging Parameters system table controls the kind of error feedback G2 provides while a KB is running.
Warning-message-level, Tracing-message-level, and Breakpoint-level in this table with the KB. Controlling Error Signalling
The Warning-message-level attribute controls the general error messages that G2 displays in the operator logbook while a KB is running.
Controlling Debugging Trace Messages
The Tracing-message-level attribute controls the trace messages that G2 displays in the operator logbook. Trace messages tell you what steps G2 is taking to evaluate expressions and to invoke rules, and the results of those steps.
Specifying Breakpoints for Debugging
The Breakpoint-level attribute tells G2 to halt a running KB at particular times, called breakpoints, to display a trace message, and to wait for you to acknowledge the message.
![]() |
G2 cannot continue until you click on one of the choices.
Because G2 stops at breakpoints, it does not run in real time when breakpoints are set. Thus, you should never set breakpoints when G2 is controlling an application in real time. Breakpoints are convenient, however, when you are running a simulation that does not run in real time, because you can halt as long as you like at a breakpoint without altering the simulation behavior.
When you use breakpoint debugging, it is best to change to simulated time. This has the effect of suspending the real-time clock during debugging. For more information about using simulated time, see Timing Parameters.
Enabling Tracing and Breakpoints for Debugging
The Tracing-and-breakpoints-enabled? attribute controls whether G2 can display messages or set breakpoints, regardless of the value of any other system table attribute or the attribute of any item. When the attribute is set to yes, G2 looks at the system table attributes and particular attribute tables to see which attributes are set and what breakpoints and messages it should provide. no, G2 does not stop for any breakpoints and does not display any trace messages or run-time warning messages. no. By default, G2 does not stop for any breakpoints and does not display any trace messages or run-time warning messages. Class-Specific Attributes of Debugging Parameters
The class-specific attributes of the Debugging Parameters system table are: