You can debug a Web application just like any regular COBOL application using the debugger. For information on using the debugger, see the " NetCOBOL Debugging Guide." Before debugging, be careful of the following:
The debugger, when debugging is started, automatically interrupts execution at the entrance of the Web application, providing you with an opportunity for debugging operation. You need to set a breakpoint in advance to disable automatic interrupts occurring when the Web application, after responding to the WWW Browser, is executed by the next request. To interrupt the execution of a Web application loaded by the next request, specify the name of the program to be loaded at a command or in a dialog box to specify a breakpoint. For details, see "Debug functions for dynamic structured programs" in the " NetCOBOL Debugging Guide".
The debugger cannot detect an application error (exception) occurring in a Web application, which is detected and handled by IIS instead. To have the debugger detect an application error, access the debugger's [Environments] dialog and then the [Operation] page and check [Break execution at the first signal]. For details, see "Debug functions for signals handled by the exception handler" in the "NetCOBOL Debugging Guide".
A Web application, after responding to the WWW Browser, is running because it waits for the next request. To perform the debug operation including setting a breakpoint, select the [Break] command from the debugger's menu to interrupt the execution of a program before doing so.
Note also the following precaution on debugging:
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. Additionally, set the IIS connection timeout value to an appropriate one.