Syntax |
TraceEnable
file$
TraceDisable
|
Description |
TraceEnable
enables tracing to a file. The file will be located in your project's log directory. Tracing to a file is only supported from the event manager. The trace output will be written to the log directory. Tracing has a performance impact since the file is opened and closed for each write. Tracing is intended for debug use only and should be removed from production code. |
|
TraceDisable
disables tracing to a file |
Example |
Sub Main()
if PointSet("TRACE_TRIGGER") = TRUE then
TraceEnable "MY_LOG"
end if
Trace "Trace Message 1"
Trace "Trace Message 2"
TraceDisable
End Sub
|