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
Trace Log Message Synchronous Supported Supported Not Supported

Syntax

Trace(strOutputMessage)
strOutputMessage
The text of the message to be displayed.

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.")