Top
NetCOBOL V11.0 NetCOBOL Studio User's Guide
FUJITSU Software

7.3.2 Execution

The debugger can execute a series of statements up to the next breakpoint or the specified statement all at once, or it can execute it statement by statement for checking of the behavior of each statement in the execution path. However, if a breakpoint is detected during execution of the program, execution is halted at this breakpoint even when it has not reached any specified statement.

Note

If the path of the executable program to be debugged is not displayed for the selected tree element in the "Debug" view, the execution operation of the debugger is disabled. If the correct tree element has not been selected, select a tree element for which the path of an executable program is displayed, and run the debugger.

7.3.2.1 Unconditional execution

In unconditional execution, a program is executed without any halt statement specified. The program is executed until either the next breakpoint is reached or the program exits.

Use any of the following methods to perform unconditional execution:

7.3.2.2 Step Into

Step-into executes only one statement in a program. If the executed statement invokes another process such as a CALL statement, control jumps to the called process, and execution is halted.

Use any of the following methods to perform Step Into:

Note

When Step Into is executed just before a COPY statement, execution is halted at the first statement in the COBOL Library.

7.3.2.3 Step Over

Step-over executes only one statement in a program. If the executed statement invokes another process such as a CALL statement, execution is not halted in the called process. Instead, all of the called process is executed, and execution is halted at the next statement following the calling statement.

Use any of the following methods to perform Step Over:

Note

When Step Over is executed just before a COPY statement, execution is halted at the first statement in the COBOL Library.

7.3.2.4 Execution until control returns to the calling process

When execution has been halted within a subprogram or method, this function performs execution until control returns to the calling process.

Use any of the following methods to perform execution until control returns to the calling process:

Note

When Step Return is executed in a COBOL library, the program is executed until returning to the call process of the program in which the COBOL library is specified.

7.3.2.5 Execution until control reaches the specified statement

The program is executed from the current halt statement to the statement at which the cursor is positioned in the COBOL editor.

To execute the program to the specified statement:

Note

Run to Line cannot be executed from a COBOL library. In order to execute to the specified statement, use one of the operations below.

  • Set the breakpoint to the target line and use Unconditional execution.

  • Repeat Step Into or Step Over until the control reaches the target line.