Debugging in a Web Environment

Debugging in a web environment requires special techniques because there is no Uniface client application to debug. For each HTTP request, Uniface starts an instance of the requested server page, and terminates it after the request is handled.

You can use remote debugging to connect the Uniface Debugger with a Uniface Web Server over TCP or TLS. For more information, see Debugging a Web Application.

You can also change some configuration settings for debugging purposes:

  • If you only need a ProcScript trace, use $PROC_TRACING and $PUTMESS_LOG_FILE in the assignment file of the application server. You can view the tracing result from the log file or in the browser. For more information, see Using ProcScript Tracing in a Web Application.
  • When debugging dynamic server pages, it can be helpful to set the $JSON_INDENT and $JSON_SHOWNAMES assignment settings to make the pages more human-readable.

Browsers also have developer tools that can be used to monitor and debug JavaScript code execution. These are available from the browser's menu. For example:

Related Topics