By default, G2 does not set breakpoints.
To set breakpoints during execution:
Breakpoint-level attribute in the Debugging Parameters system table.
Tracing-and-breakpoints-enabled? attribute in the Debugging Parameters system table to yes.
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:
Pause button to pause the KB and remove the breakpoint
Continue button to create a trace message and breakpoint for the next execution
Disable debugging button to turn tracing and breakpoints off entirely
Resume from the Main Menu. G2 displays a trace message and breakpoint at the next step in the execution.