Class NDebugger
Debugger: displays and logs errors.
Behavior is determined by two factors: mode & output
- modes: production / development
- output: HTML / AJAX / CLI / other (e.g. XML)
final public
|
|
public static
|
|
public static
boolean
|
|
public static
string
|
#
log( string|
Logs message or exception to file (if not disabled) and sends email notification (if enabled). |
public static
|
|
public static
|
|
public static
boolean
|
|
public static
mixed
|
|
public static
float
|
|
public static
mixed
|
|
public static
boolean
|
|
public static
|
boolean |
DEVELOPMENT
|
FALSE |
#
server modes |
boolean |
PRODUCTION
|
TRUE |
#
server modes |
|
DETECT
|
NULL |
#
server modes |
string |
DEBUG
|
'debug' |
|
string |
INFO
|
'info' |
|
string |
WARNING
|
'warning' |
|
string |
ERROR
|
'error' |
|
string |
CRITICAL
|
'critical' |
public static
boolean
|
$productionMode |
|
#
in production mode is suppressed any debugging output |
public static
boolean
|
$consoleMode |
|
#
in console mode is omitted HTML output |
public static
integer
|
$time |
|
#
timestamp with microseconds of the start of the request |
public static
string
|
$source |
|
#
requested URI or command line |
public static
string
|
$editor | 'editor://open/?file=%file&line=%line' |
#
URL pattern mask to open editor |
public static
string
|
$browser |
|
#
command to open browser (use 'start ""' in Windows) |
public static
integer
|
$maxDepth | 3 |
#
how many nested levels of array/object properties display |
public static
integer
|
$maxLen | 150 |
#
how long strings display |
public static
boolean
|
$showLocation | FALSE |
#
display location? |
public static
array
|
$consoleColors | array(
'bool' => '1;33',
'null' => '1;33',
'int' => '1;36',
'float' => '1;36',
'string' => '1;32',
'array' => '1;31',
'key' => '1;37',
'object' => '1;31',
'visibility' => '1;30',
'resource' => '1;37',
) |
|
public static
|
$blueScreen |
|
|
public static
boolean|integer
|
$strictMode | FALSE |
#
determines whether any error will cause immediate death; if integer that it's matched against error severity |
public static
boolean
|
$scream | FALSE |
#
disables the @ (shut-up) operator so that notices and warnings are no longer hidden |
public static
array
|
$onFatalError | array() |
#
of callables specifies the functions that are automatically called after fatal error |
public static
|
$logger |
|
|
public static
|
$fireLogger |
|
|
public static
string
|
$logDirectory |
|
#
name of the directory where errors should be logged; FALSE means that logging is disabled |
public static
string
|
|
#
email to sent error notifications |
|
public static
|
$mailer |
|
|
public static
|
$emailSnooze |
|
|
public static
|
$bar |
|