To confirm an error that is detected by a CGI subroutine, debug mode must be set in the program as follows immediately before COBW3_INIT is called:
: 000190 SET COBW3-DMODE-DBG TO TRUE. 000200 CALL "COBW3_INIT" USING COBW3. :
This setting displays an error message in the WWW browser if an error is detected in the CGI subroutine.
If a header output parameter other than COBW3-CONTENT-TYPE-NON is set, COBW3-CONTENT-TYPE-HTML is assumed and COBW3_INIT declares the Content-type.
To set the debug mode, the program must be modified and the Web application must be created again. When the debug mode is set, the error messages that are displayed in the WWW browser can be confirmed also using log data. Therefore, to confirm error messages without modifying the application, log data should be used.
Note
When the operation code system of the Web application is Unicode, the debug mode setting is invalid. Check the operation by confirming the log data, etc.