Class Debug (namespace Nette)
Debug static class.
Public Method Summary | |
---|---|
Debug |
__construct
()
Static class - cannot be instantiated.
|
static void |
addColophon
(callback $callback)
Add custom descriptions.
|
static mixed |
consoleDump
(mixed $var, [string $title =
NULL ])
Dumps information about a variable in Nette Debug Console.
|
static void |
Disables profiler.
|
static mixed |
dump
(mixed $var, [bool $return =
FALSE ])
Dumps information about a variable in readable format.
|
static void |
Enables displaying or logging errors and exceptions.
|
static void |
Enables profiler.
|
static mixed |
fireDump
(mixed $var, string $key)
Sends variable dump to Firebug tab request/server.
|
static bool |
Sends message to Firebug console.
|
static void |
isEnabled
()
Unregister error handler routine.
|
static void |
processException
($exception, [bool $outputAllowed =
FALSE ])
Logs or displays exception.
|
static elapsed |
timer
([string $name =
NULL ])
Starts/stops stopwatch.
|
Constant Summary | |||
---|---|---|---|
null | DETECT |
NULL |
line 73 server modes Debug::enable() |
bool | DEVELOPMENT |
FALSE |
line 71 server modes Debug::enable() |
string | ERROR |
'ERROR' |
line 126 FirePHP log priority |
string | EXCEPTION |
'EXCEPTION' |
line 128 FirePHP log priority |
string | GROUP_END |
'GROUP_END' |
line 130 FirePHP log priority |
string | GROUP_START |
'GROUP_START' |
line 129 FirePHP log priority |
string | INFO |
'INFO' |
line 124 FirePHP log priority |
string | LOG |
'LOG' |
line 123 FirePHP log priority |
bool | PRODUCTION |
TRUE |
line 72 server modes Debug::enable() |
string | TRACE |
'TRACE' |
line 127 FirePHP log priority |
string | WARN |
'WARN' |
line 125 FirePHP log priority |
Variable Summary | ||||
---|---|---|---|---|
static bool | $consoleMode |
|
line 43 determines whether a server is running in console mode |
|
static array | $counters | array() |
line 118 free counters for your usage |
|
static int | $emailSnooze | 172800 |
line 86 interval for sending email is 2 days |
|
static callback | $mailer | array(__CLASS__, 'defaultMailer') |
line 83 |
|
static int | $maxDepth | 3 |
line 60 how many nested levels of array/object properties display Debug::dump() |
|
static int | $maxLen | 150 |
line 63 how long strings display Debug::dump() |
|
static array | $onFatalError | array() |
line 80 of callbacks specifies the functions that are automatically called after fatal error |
|
static bool | $productionMode |
|
line 40 determines whether a server is running in production mode |
|
static int | $showLocation | FALSE |
line 66 display location? Debug::dump() |
|
static bool | $strictMode | FALSE |
line 77 determines whether to consider all errors as fatal |
|
static int | $time |
|
line 46 |
Method Details | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 138 __constructpublic Debug __construct () Static class - cannot be instantiated.
|
||||||||||||||||||
line 774 addColophonpublic static void addColophon (callback $callback) Add custom descriptions.
|
||||||||||||||||||
line 277 consoleDumppublic static mixed consoleDump (mixed $var, [string $title = Dumps information about a variable in Nette Debug Console.
|
||||||||||||||||||
line 758 disableProfilerpublic static void disableProfiler () Disables profiler.
|
||||||||||||||||||
line 240 dumppublic static mixed dump (mixed $var, [bool $return = Dumps information about a variable in readable format.
|
||||||||||||||||||
line 423 enablepublic static void enable ([mixed $mode = Enables displaying or logging errors and exceptions.
|
||||||||||||||||||
line 747 enableProfilerpublic static void enableProfiler () Enables profiler.
|
||||||||||||||||||
line 849 fireDumppublic static mixed fireDump (mixed $var, string $key) Sends variable dump to Firebug tab request/server.
|
||||||||||||||||||
line 864 fireLogpublic static bool fireLog (mixed $message, [string $priority = Sends message to Firebug console.
|
||||||||||||||||||
line 507 isEnabledpublic static void isEnabled () Unregister error handler routine.
|
||||||||||||||||||
line 596 processExceptionpublic static void processException ($exception, [bool $outputAllowed = Logs or displays exception.
|
||||||||||||||||||
line 401 timerpublic static elapsed timer ([string $name = Starts/stops stopwatch.
|