Top
NetCOBOL V11.0 CGI Subroutines User's Guide
FUJITSU Software

5.2 Checking Operation by Interactive Debugger

To debug a COBOL Web application by using the interactive debugger, the debugger must be activated from the program that is to be debugged.

The Web application can be remotely debugged from the client which starts a WWW browser by using a remote debugger. Please refer to "NetCOBOL Debugging Guide" for the usage of a remote debugger.

Start debugging by using a debugger in the following procedure:

  1. Compile and link a Web application for debug.

    Create a Web application by specifying a compile option and a link option for debugging. For explanations of the compilation and linkage for debugging, refer to the "NetCOBOL Debugging Guide".

  2. Set the run-time environment information.

    To start the debugger from a program that is to be debugged, the run-time environment information shown below must be previously set in the system environment variable or in the run-time initialization file (COBOL85.CBR). When the run-time environment information is set in the system environment variable, the system must be restarted.

    @CBR_ATTACH_TOOL=TEST [start-parameter]

    Specifies whether the debugger will start (TEST) at application execution. After the "TEST," a debugger start parameter can be specified. For an explanation of the start parameters, refer to the "NetCOBOL Debugging Guide".

  3. Execute a log-on to the computer in which the Web application to be debugged is to be executed.

  4. Start the Web application from a WWW browser. This WWW browser need not operate on the computer in which the Web application to be debugged is to be executed.

  5. When the Web application is started, the debugger is also automatically started. After the debugger has started, specify a debugging information file storage folder and necessary information from the "Start Debugging" dialog, and start the debugging.

The subsequent operation is the same as that of the ordinary debugging using a debugger. For an explanation of the debugger, refer to the "NetCOBOL Debugging Guide".

Note

While you are debugging a Web application using the debugger, any operation of the Web application takes longer than usual. Thus, a timeout may occur during debugging depending on the WWW browser. Set an appropriate timeout value for the WWW Browser if possible. Set an appropriate timeout value for the WWW Server if possible.