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 array |
getDefaultColophons
(string $sender)
Returns default colophons.
|
static void |
init
()
Static class constructor.
|
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 123 FirePHP log priority |
string | EXCEPTION |
'EXCEPTION' |
line 125 FirePHP log priority |
string | GROUP_END |
'GROUP_END' |
line 127 FirePHP log priority |
string | GROUP_START |
'GROUP_START' |
line 126 FirePHP log priority |
string | INFO |
'INFO' |
line 121 FirePHP log priority |
string | LOG |
'LOG' |
line 120 FirePHP log priority |
bool | PRODUCTION |
TRUE |
line 72 server modes Debug::enable() |
string | TRACE |
'TRACE' |
line 124 FirePHP log priority |
string | WARN |
'WARN' |
line 122 FirePHP log priority |
Variable Summary | ||||
---|---|---|---|---|
static bool | $consoleMode |
|
line 43 determines whether a server is running in console mode |
|
static array | $counters | array() |
line 115 free counters for your usage |
|
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 135 __constructpublic Debug __construct () Static class - cannot be instantiated.
|
||||||||||||||||||
line 751 addColophonpublic static void addColophon (callback $callback) Add custom descriptions.
|
||||||||||||||||||
line 273 consoleDumppublic static mixed consoleDump (mixed $var, [string $title = Dumps information about a variable in Nette Debug Console.
|
||||||||||||||||||
line 735 disableProfilerpublic static void disableProfiler () Disables profiler.
|
||||||||||||||||||
line 236 dumppublic static mixed dump (mixed $var, [bool $return = Dumps information about a variable in readable format.
|
||||||||||||||||||
line 406 enablepublic static void enable ([mixed $mode = Enables displaying or logging errors and exceptions.
|
||||||||||||||||||
line 724 enableProfilerpublic static void enableProfiler () Enables profiler.
|
||||||||||||||||||
line 826 fireDumppublic static mixed fireDump (mixed $var, string $key) Sends variable dump to Firebug tab request/server.
|
||||||||||||||||||
line 841 fireLogpublic static bool fireLog (mixed $message, [string $priority = Sends message to Firebug console.
|
||||||||||||||||||
line 771 getDefaultColophonspublic static array getDefaultColophons (string $sender) Returns default colophons.
|
||||||||||||||||||
line 145 initpublic static void init () Static class constructor.
|
||||||||||||||||||
line 490 isEnabledpublic static void isEnabled () Unregister error handler routine.
|
||||||||||||||||||
line 576 processExceptionpublic static void processException ($exception, [bool $outputAllowed = Logs or displays exception.
|
||||||||||||||||||
line 384 timerpublic static elapsed timer ([string $name = Starts/stops stopwatch.
|