:Trace()
Class
Syntax
:Trace( [lTrace[, cFileName[, nOptions]]] ) --> lSuccess
Parameters
lTrace (Optional)
Logical. True to turn Trace On. False to turn Trace Off
If not passed, :Trace() toggles the current state of Trace
cFileName (Optional)
Filename (including Path) to write Trace Information to.
Defaults to "Trace"+DtoS(Date())+".log"
nOptions (Optional)
|
0 |
TRACE_ALL |
All function calls are written to the trace file. This is the default value. |
|
1 |
TRACE_ERROR |
Only those function calls which fail are recorded in the trace file. |
|
2 |
TRACE_WARNING |
Only those function calls which fail, or return values which indicate a warning, are recorded in the trace file. |
|
4 |
TRACE_HEXDUMP |
All functions calls are written to the trace file, plus all the data that is sent or received is displayed, in both ASCII and hexadecimal format. |
Return
lSuccess. True if successful, otherwise False.
Obtain detailed error information with :nErr and :cErr
Description
Trace captures the low-level communications between the application and the remote server and writes this information to the specified file.