Top
NetCOBOL V11.0 Debugging Guide
FUJITSU Software

2.6.1 Debug functions for dynamic structured programs

Dynamic structured programs can be debugged in the same way as static structured programs. However, the following points must be noted. Refer to "Dynamic Linkage" in the "NetCOBOL User's Guide."

Dynamic-link structure

For a dynamic-link structure, required DLLs will also be loaded when the calling program is loaded. As a result, the DLLs will also be objects of debugging. DLLs can be debugged in the same way as static structured programs.

Dynamic-program structure

For a dynamic-program structure, a required DLL is loaded when called from the calling program. The DLL becomes an object of debugging when it is loaded.

To set a breakpoint in a program that includes a DLL, the breakpoint must be set before DLL is called. When a breakpoint is set, the debugger will not be able to display source files of programs that have not been loaded. Therefore, use a command or dialog box to specify the name of the program to be loaded. The set breakpoint is valid when a program that has been unloaded is reloaded as long as you do not delete the set breakpoint.

For example, to set a breakpoint at line 5000 of program PROG05, specify the command as follows:

BREAK 5000 IN(PROG05)