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

Setting Breakpoints

In addition to displaying trace messages during debugging, you can pause the KB as each execution occurs by setting breakpoints. This feature allows you to step through the execution, pausing between steps, which enables you to explore other parts of your KB during execution.

By default, G2 does not set breakpoints.

To set breakpoints during execution:

  1. Edit the Breakpoint-level attribute in the Debugging Parameters system table.

  2. Set the Tracing-and-breakpoints-enabled? attribute in the Debugging Parameters system table to yes.

The available options are the same as those for displaying trace messages. For more information, see Specifying Breakpoints for Debugging.

For example, suppose you have an action button that executes a procedure, which in turn calls another procedure. Setting the breakpoint level to level 1 (breakpoints on entry and exit) causes G2 to display a trace message and breakpoint the first time G2 begins executing a procedure, as this picture shows.


At this point, you can select:

To continue running after pausing, select Resume from the Main Menu. G2 displays a trace message and breakpoint at the next step in the execution.

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

Copyright © 1997 Gensym Corporation, Inc.