Module: debug

Methods

(static) error(text) → {boolean}

Show an error in the console and on the screen.
Parameters:
Name Type Description
text string Error message
Source:
Returns:
Always returns true, for consistency with log()
Type
boolean

(static) log(text) → {boolean}

Print a logging message to console and on the screen if debugging mode is on.
Parameters:
Name Type Description
text string Text to log
Source:
Returns:
True if a debugging message was printed, false otherwise
Type
boolean

(static) off() → {boolean}

Set the debugging status off.
Source:
Returns:
the new status (always false)
Type
boolean

(static) on() → {boolean}

Set the debugging status on.
Source:
Returns:
the new status (always true)
Type
boolean

(static) status() → {boolean}

Returns the current state of the debugging flag.
Source:
Returns:
Type
boolean

(static) toggle() → {boolean}

Set or unset the the debugging flag.
Source:
Returns:
The new status of the debugging flag.
Type
boolean