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
Queries error log.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Plugin | 12.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
none
Returns JSON or error.
Try the error log:
# test Errors in file Kontakte
# start error logging
Set Variable [ $r ; Value: MBS("ClearErrors") ]
#
# cause some errors
Set Variable [ $r ; Value: MBS("test"; 1; "Hello") ]
Set Variable [ $r ; Value: MBS("DynaPDF.Print"; 1; "Hello") ]
#
# now query error log
Set Variable [ $r ; Value: MBS("ErrorLog") ]
Show Custom Dialog [ "Error Log" ; $r ]
Example result:
[
{
"function": "test",
"result": "[MBS] Unknown function: test",
"parameter": ["test", 1, "Hello"],
"fileName": "Kontakte",
"scriptName": "test Errors",
"currentTimeStamp": "23.06.2022 09:28:34"
},
{
"function": "DynaPDF.Print",
"result": "[MBS] DynaPDF.Print is only supported for Windows. Please use PDFKit.Print on Mac.",
"parameter": [
"DynaPDF.Print",
1,
"Hello"
],
"fileName": "Kontakte",
"scriptName": "test Errors",
"currentTimeStamp": "23.06.2022 09:28:34"
}
]
This function is free to use.
Created 23th June 2022, last changed 23th June 2022