Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
Sets whether to include times in traces.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Trace | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
Value | The new setting. | 1 |
Returns OK or error.
Start log on desktop folder and include all calls with times:
Set Variable [ $FilePath ; Value: MBS( "Path.AddPathComponent"; MBS( "Folders.UserDesktop" ); "trace.txt" ) ]
Set Variable [ $a ; Value: MBS( "Trace.SetErrorsOnly"; 0 ) ]
Set Variable [ $b ; Value: MBS( "Trace.SetWithTimes"; 1 ) ]
Set Variable [ $c ; Value: MBS("Trace"; $FilePath) ]
Enable advanced logging to debug a problem with CURL:
# Trace to file with times
Set Variable [ $r; Value: MBS( "Trace"; "/tmp/mbs.log" )
Set Variable [ $r; Value: MBS( "Trace.SetWithTimes"; 1 )
#
# Debug log for CURL with additional data:
Set Variable [ $r; Value: MBS( "CURL.SetDebugWithTime"; $curl; 1 )
Set Variable [ $r; Value: MBS( "CURL.SetDebugWithProgress"; $curl; 1 )
#
# and define some timeouts
Set Variable [ $r; Value: MBS( "CURL.SetOptionConnectTimeoutMS"; $curl; 10000 )
This function is free to use.
Created 16th July 2019, last changed 18th December 2021