Controlling the execution of program code: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with "__TOC__ <span class="f_Para">This section describes how to navigate through and control the execution of the program code you are debugging.</span> <span class="f_Para">GUI b...")
 
No edit summary
Line 12: Line 12:
<span class="f_Para">These subsections follow:</span>
<span class="f_Para">These subsections follow:</span>


<span class="f_SimpleListText">[[step_next_over_run.html|Step, Step Over, and Run]]</span>
<span class="f_SimpleListText">[[Step, Step Over, and Run|Step, Step Over, and Run]]</span>


<span class="f_SimpleListText">[[using_breakpoints.html|Using breakpoints]]</span>
<span class="f_SimpleListText">[[Using breakpoints|Using breakpoints]]</span>


<span class="f_SimpleListText">[[suppress_break_eval.html|Suppressing the break at the end of request evaluation]]</span>
<span class="f_SimpleListText">[[Suppressing the break at the end of request evaluation|Suppressing the break at the end of request evaluation]]</span>


<span class="f_SimpleListText">[[break_after_read_screen.html|Breaking after READ SCREEN or READ MENU statements]]</span>
<span class="f_SimpleListText">[[Breaking after READ SCREEN or READ MENU statements|Breaking after READ SCREEN or READ MENU statements]]</span>


<span class="f_SimpleListText">[[step_out.html|Stepping out]]</span>
<span class="f_SimpleListText">[[step_out.html|Stepping out]]</span>
Line 24: Line 24:
<span class="f_SimpleListText">[[end_execution_early.html|Cancelling execution]]</span>
<span class="f_SimpleListText">[[end_execution_early.html|Cancelling execution]]</span>


<span class="f_SimpleListText">[[excluding_sections_of_code.html|Excluding sections of source code from debugging]]</span>
<span class="f_SimpleListText">[[Excluding sections of source code from debugging|Excluding sections of source code from debugging]]</span>


<span class="f_SimpleListText">[[altering_flow_of_execution.html|Altering the flow of execution]]</span>
<span class="f_SimpleListText">[[altering_flow_of_execution.html|Altering the flow of execution]]</span>

Revision as of 03:54, 16 November 2022

This section describes how to navigate through and control the execution of the program code you are debugging.

GUI buttons, menus, and commands let you execute a request all at once, or let you advance execution in increments (by pausing after executing individual statements, optionally bypassing the code display from calls to subroutines and methods).

You can explicitly set "breakpoints" in a request before which program execution is to pause, and you can toggle defaults a) to pause or not at the end of the evaluation of a request, and b) to pause or not after processing READ SCREEN statements.

You can discontinue the debugging of all or part of a request called by your program, skipping the execution of the entire request or of the remaining part of the request.

You can continue code execution without interruption until a procedure you identify by name or pattern is reached. And you can jump out of the normal flow of code execution, executing the statement to which you jump, but not executing the intervening statements.

These subsections follow:

Step, Step Over, and Run

Using breakpoints

Suppressing the break at the end of request evaluation

Breaking after READ SCREEN or READ MENU statements

Stepping out

Cancelling execution

Excluding sections of source code from debugging

Altering the flow of execution

Previewing program code