Tools for debugging
        
        
        
Members
- 
    staticDuDebug.debugLogDuDebugLog null
- 
    
    Set this attribute to a DuDebugLog you have created to automatically add some debug infos to the log (like catched errors).
- 
    static,readonlyDuDebug.LogLevelint
- 
    
    The log levelsProperties:Name Type Default Description VERBOSEint 0 DEBUGint 1 WARNINGint 2 CRITICALint 3 FATALint 4 NO_DEBUGint 5 
Methods
- 
    staticDuDebug.checkVar(variable, argName, argType, functionName){string|bool}D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 676
- 
    
    
    Checks if the given variable has the correct type,
 alerts a nice error if not usingDuDebug.throwUndefinedError()orDuDebug.throwTypeError().Name Type Description variableany The variable to check argNamestring The variable name argTypestring optional The expected type name (as return by jstype()). If not provided, checks only if the var is undefinedfunctionNameany optional The name or description of the function throwing the error. Returns:Type Description string | bool The (multiline) description for the error if any and DuESF.debugis true, false if there's an error andDuESF.debugis false, true if everything is ok.
- 
    staticDuDebug.error(error)D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 480
- 
    
    
    This methods shows an alert with an error thrown if DuESF.debug is set to true, and logs it in DuESF.debug.DuDebugLog if it has been set.
 The error is actually thrown only if JS Debugging is enabled in the host application, otherwise it is just shown in an alert.Name Type Description errorError | string An error thrown and catched 
- 
    staticDuDebug.inspect(obj, ownProperties){string}D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 544
- 
    
    
    Inspects a javascript object and outputs all of its attributesName Type Default Description objobject The object to inspect. ownPropertiesboolean true optional Whether to inspect only the own properties of the object. Returns:Type Description string The report. 
- 
    staticDuDebug.log(message, level)D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 470
- 
    
    
    Logs a message to DuDebug.DuDebugLog if it has been set.Name Type Default Description messagestring The message to log levelDuDebug.LogLevel DuDebug.LogLevel.DEBUG optional The level of the message 
- 
    staticDuDebug.safeRun(callback){any}D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 501
- 
    
    
    Runs a method/script safely, i.e. enclosed in a try...catch, and logs any error thrown.
 arguments can be added after the first parameter, they will be passed to the callback.
 The callback is enclosed in a function to make sure it does not create global variables.Name Type Description callbackfunction | string The method to run, or a script as a string Returns:Type Description any The return of the callback, null if it fails. 
- 
    staticDuDebug.throwError(message, functionName, error){string}D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 633
- 
    
    
    Alerts a nice Error description, ifDuESF.debugis true, and logs it if there's a log..
 Note that it does not actually throws an error.Name Type Description messageany The message to show functionNameany optional The name or description of the function throwing the error. errorError optional A JS error. Returns:Type Description string The (multiline) description for the error 
- 
    staticDuDebug.throwTypeError(variable, varName, varType, functionName){string}D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 566
- 
    
    
    Alerts a nice TypeError description, ifDuESF.debugis true, and logs it if there's a log.
 Note that it does not actually throws an error.Name Type Description variableany The failing argument varNamestring The failing argument name varTypestring The expected type functionNamestring optional The name or description of the function throwing the error. Returns:Type Description string The (multiline) description for the error 
- 
    staticDuDebug.throwUndefinedError(varName, functionName){string}D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 599
- 
    
    
    Alerts a nice UndefinedError description, ifDuESF.debugis true, and logs it if there's a log..
 Note that it does not actually throws an error.Name Type Description varNameany The name of the arg which should not be undefined functionNameany optional The name or description of the function throwing the error. Returns:Type Description string The (multiline) description for the error