Trace

Trace is a built-in scripting function that displays a text message in the Output window. It is typically used to debug the project.

Function Group Execution Windows Embedded Thin Client Mobile Access
Trace Log Message Synchronous Supported Supported Not Supported Supported (see “Notes” below)

Syntax

Web Studio Help r function logmessage trace.xml d144567e109 Trace
strOutputMessage
The text of the message to be displayed.

Returned value

This function does not return any value.

Notes

On Mobile Access, trace messages are displayed in the activity log in the browser console. For more information, see Use the activity log to troubleshoot a project screen.

Examples

Display static text that reports a specific event:
  Trace("Beginning step 5.")  
Display a date or time stamp by referencing the appropriate system tag:
  Trace(Date)  
Concatenate static text, tag references, and function calls to form a complex message:
  Trace("The current second of the minute is " + Second + " and the system tick is " + GetTickCount() + " ms.")  

Trace