Class Debug
Core debug tools - printing any value by var_dump(); in fixed bar at browser window right bottom border - timing printing - debuging shortcut functions initialization - exceptions hdd logging or printing in development mode
Direct known subclasses
MvcCore\Ext\Debug\Tracy
public static
|
|
protected static
|
|
protected static
|
#
initLogDirectory( string $logDirectory )
If log directory doesn't exist, create new directory - relative from app root. |
public static
float
|
|
public static
mixed
|
|
public static
mixed
|
|
public static
string
|
|
public static
boolean
|
|
public static
|
|
public static
|
|
protected static
float
|
|
protected static
string
|
#
dumpHandler( mixed $var, string $title = NULL, array $options = array() )
Dump any variable into string throw output buffering, store result for printing later. Return printed variable string. |
protected static
|
#
exceptionHandler(
Exception printing for development, logging for production. |
string |
DEBUG
|
#
'debug'
|
string |
INFO
|
#
'info'
|
string |
WARNING
|
#
'warning'
|
string |
ERROR
|
#
'error'
|
string |
EXCEPTION
|
#
'exception'
|
string |
CRITICAL
|
#
'critical'
|
string |
JAVASCRIPT
|
#
'javascript'
|
public static
string
|
$EmailRecepient
Email recepient to send information about exceptions or errors. 'admin@localhost' by default. |
#
'admin@localhost'
|
public static
mixed
|
$LogDirectory
Relative path from app root to store any log information. '/Var/Logs' by default. |
#
'/Var/Logs'
|
protected static
boolean
|
$development
Semaphore to execute Init(); method only one time. TRUE if development, FALSE if anything else |
#
NULL
|
protected static
array
|
$handlers
Debuging and loging handlers, this shoud be customized in extended class. |
#
array(
'timer' => 'timerHandler',
'dump' => 'dumpHandler',
'barDump' => 'dumpHandler',
'log' => 'dumpHandler',
'fireLog' => 'dumpHandler',
'exceptionHandler' => 'exceptionHandler',
'shutdownHandler' => 'ShutdownHandler',
)
|
protected static
array
|
$dumps
Store for printed dumps by output buffering to send it at response end. |
#
array()
|
protected static
array
|
$timers
Store timers start points. |
#
array()
|
protected static
boolean
|
$originalDebugClass
True for cofigured debug class as \MvcCore\Debug, FALSE for any other configured extension |
#
TRUE
|
public static
callable
|
$InitGlobalShortHands
Initialize global development shorthands. |
#
array()
|