Class Debug (namespace Nette)
Debug static class.
Public Method Summary | |
---|---|
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.
|
static void |
toStringException
($exception)
Handles exception throwed in __toString().
|
Debug |
__construct
()
Static class - cannot be instantiated.
|
Constant Summary | |||
---|---|---|---|
null | DETECT |
NULL |
line 57 server modes Debug::enable() |
bool | DEVELOPMENT |
FALSE |
line 55 server modes Debug::enable() |
string | ERROR |
'ERROR' |
line 110 FirePHP log priority |
string | EXCEPTION |
'EXCEPTION' |
line 112 FirePHP log priority |
string | GROUP_END |
'GROUP_END' |
line 114 FirePHP log priority |
string | GROUP_START |
'GROUP_START' |
line 113 FirePHP log priority |
string | INFO |
'INFO' |
line 108 FirePHP log priority |
string | LOG |
'LOG' |
line 107 FirePHP log priority |
bool | PRODUCTION |
TRUE |
line 56 server modes Debug::enable() |
string | TRACE |
'TRACE' |
line 111 FirePHP log priority |
string | WARN |
'WARN' |
line 109 FirePHP log priority |
Variable Summary | ||||
---|---|---|---|---|
static bool | $consoleMode |
|
line 27 determines whether a server is running in console mode |
|
static array | $counters | array() |
line 102 free counters for your usage |
|
static int | $emailSnooze | 172800 |
line 70 interval for sending email is 2 days |
|
static callback | $mailer | array(__CLASS__, 'defaultMailer') |
line 67 |
|
static int | $maxDepth | 3 |
line 44 how many nested levels of array/object properties display Debug::dump() |
|
static int | $maxLen | 150 |
line 47 how long strings display Debug::dump() |
|
static array | $onFatalError | array() |
line 64 of callbacks specifies the functions that are automatically called after fatal error |
|
static bool | $productionMode |
|
line 24 determines whether a server is running in production mode |
|
static int | $showLocation | FALSE |
line 50 display location? Debug::dump() |
|
static bool | $strictMode | FALSE |
line 61 determines whether to consider all errors as fatal |
|
static int | $time |
|
line 30 |
Method Details | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 796 addColophonpublic static void addColophon (callback $callback) Add custom descriptions.
|
||||||||||||||||||
line 262 consoleDumppublic static mixed consoleDump (mixed $var, [string $title = Dumps information about a variable in Nette Debug Console.
|
||||||||||||||||||
line 780 disableProfilerpublic static void disableProfiler () Disables profiler.
|
||||||||||||||||||
line 224 dumppublic static mixed dump (mixed $var, [bool $return = Dumps information about a variable in readable format.
|
||||||||||||||||||
line 412 enablepublic static void enable ([mixed $mode = Enables displaying or logging errors and exceptions.
|
||||||||||||||||||
line 769 enableProfilerpublic static void enableProfiler () Enables profiler.
|
||||||||||||||||||
line 870 fireDumppublic static mixed fireDump (mixed $var, string $key) Sends variable dump to Firebug tab request/server.
|
||||||||||||||||||
line 885 fireLogpublic static bool fireLog (mixed $message, [string $priority = Sends message to Firebug console.
|
||||||||||||||||||
line 504 isEnabledpublic static void isEnabled () Unregister error handler routine.
|
||||||||||||||||||
line 588 processExceptionpublic static void processException ($exception, [bool $outputAllowed = Logs or displays exception.
|
||||||||||||||||||
line 390 timerpublic static elapsed timer ([string $name = Starts/stops stopwatch.
|
||||||||||||||||||
line 661 toStringExceptionpublic static void toStringException ($exception) Handles exception throwed in __toString().
|
||||||||||||||||||
line 122 __constructpublic Debug __construct () Static class - cannot be instantiated.
|