Trace messages
To write trace messages to the trace file and/or window, you can use the system function setrace.
Internally to the system, the function accepts a variable number of arguments (similar to printf) to be used in the trace message. The first argument must be an integer trace number for the number of the trace message to write. For the remaining arguments, the system insures that the numbers and types match the format specifiers.
Your calls to this function should use two arguments in the following order:
- A 0 for user-defined error messages.
- A string for the trace message to write. Note: You can use sprintf to create the string to pass to the function.
For examples of using setrace, see the example in Section 2.4.