Debug
class Debug (View source)
The Debug class holds all methods to help debugging while development.
The output of all the contained methods can be activated/deactivated with defining the AM_DEBUG_ENABLED constant. All logged information will be stored in $buffer as JS's console.log() items.
Methods
Stop timer, calculate execution time, get user & server constants and return a console log item for every item in the buffer array.
Enable full error reporting, when debugging is enabled.
Return the buffer array.
Log any kind of variable and append it to the $buffer array.
Details
at line 78
static string
consoleLog()
Stop timer, calculate execution time, get user & server constants and return a console log item for every item in the buffer array.
at line 114
static
errorReporting()
Enable full error reporting, when debugging is enabled.
at line 129
static array
getLog()
Return the buffer array.
at line 143
static
log(mixed $element, string $description = '')
Log any kind of variable and append it to the $buffer array.