Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Plugin.isDebug
Checks whether this is debug version of MBS Plugin.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Plugin | 7.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameters
none
Result
Returns 1, 0 or error.
Description
Checks whether this is debug version of MBS Plugin.The debug version is available on request and given to users to find the roots of a bug.
Always returns 0 since we stopped building separate debug copies starting with version 9.5.
Examples
Query debug status
MBS("Plugin.IsDebug")
Example result: 0
Script to report back status of MBS Plugin:
# Script to trigger somewhere to report back details about MBS Plugin
Set Variable [ $version ; Value: GetAsText(MBS("Version")) ]
Set Variable [ $platform ; Value: MBS( "Platform" ) ]
Set Variable [ $buildNumber ; Value: MBS( "Plugin.BuildNumber" ) ]
Set Variable [ $path ; Value: MBS( "Plugin.Path" ) ]
Set Variable [ $IsRegistered ; Value: MBS( "IsRegistered" ) ]
Set Variable [ $Name ; Value: MBS( "Plugin.LicenseeName" ) ]
Set Variable [ $Debug ; Value: MBS( "Plugin.isDebug" ) ]
If [ $version = "?" ]
Set Variable [ $text ; Value: "MBS Plugin not installed. " & Get ( ApplicationVersion ) ]
Else
Set Variable [ $l1 ; Value: "MBS Plugin " & $version & ", build " & $buildNumber & " installed in " & Get ( ApplicationVersion ) ]
Set Variable [ $l2 ; Value: "¶Platform: " & $Platform & "¶Path: " & $path ]
Set Variable [ $l3 ; Value: If($IsRegistered; "¶Licensed for: " & $Name ; "¶No license set.") ]
Set Variable [ $l4 ; Value: "¶Debug: " & If($debug; "yes"; "no") ]
Set Variable [ $text ; Value: $l1 & $l2 & $l3 ]
End If
Exit Script [ Text Result: $text ]
See also
This function is free to use.
Created 23th February 2017, last changed 10th May 2021