Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Edge HMI

Trace

  • Last UpdatedOct 29, 2026
  • 1 minute read

Logs a text message. This is typically done to debug the project.

Function

Group

Execution

String Exp.

Windows

Windows Embedded

IoT View

Thin Clients

Mobile Access

Trace

Log Message

Synchronous

No

Supported

Supported

Supported (see Notes below)

Not supported

Supported (see Notes below)

Syntax

Trace(strOutputMessage)

strOutputMessage

The text of the message to be displayed.

Return value

This function returns no value.

Notes

On Mobile Access, Trace messages are displayed in the activity log in the browser console. This also applies to projects running on IoT View, because they only use Mobile Access for thin client access. For more information, see Use the activity log to troubleshoot the Mobile Access web interface.

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

In This Topic