Using ProcScript Tracing in a Web Application

To get the ProcScript trace information, you can use $PROC_TRACING and $PUTMESS_LOG_FILE in the assignment file of the Uniface Server. You can view the tracing result from the log file or in the browser.

  1. In the assignment file of the application server (for example, wasv.asn), add the following settings:
    $proc_tracing=true
    $putmess_log_file=LogFileName

    You can view the ProcScript trace information in the LogFileName.

  2. If you want to view the trace information from a browser, put the following line in the postRequest trigger:
    $webinfo("output")="%%$webinfo("output")%%%<pre>%%$putmess%%%</pre>"

    If no application shell is defined for the Uniface Server, you can put this line into the postActivate trigger of the server page.

    The ProcScript trace will be added at the end of the HTTP response.

Related Topics