Class Debug (namespace Nette)
Debug static class.
Public Method Summary | |
---|---|
static void |
addColophon
(callback $callback)
Add custom descriptions.
|
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 bool |
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.
|
Debug |
__construct
()
Static class - cannot be instantiated.
|
Constant Summary | |||
---|---|---|---|
null | DETECT |
NULL |
line 43 server modes Debug::enable() |
bool | DEVELOPMENT |
FALSE |
line 41 server modes Debug::enable() |
string | ERROR |
'ERROR' |
line 116 FirePHP log priority |
string | EXCEPTION |
'EXCEPTION' |
line 118 FirePHP log priority |
string | GROUP_END |
'GROUP_END' |
line 120 FirePHP log priority |
string | GROUP_START |
'GROUP_START' |
line 119 FirePHP log priority |
string | INFO |
'INFO' |
line 114 FirePHP log priority |
string | LOG |
'LOG' |
line 113 FirePHP log priority |
bool | PRODUCTION |
TRUE |
line 42 server modes Debug::enable() |
string | TRACE |
'TRACE' |
line 117 FirePHP log priority |
string | WARN |
'WARN' |
line 115 FirePHP log priority |
Variable Summary | ||||
---|---|---|---|---|
static bool | $consoleMode |
|
line 56 determines whether a server is running in console mode |
|
static array | $counters | array() |
line 47 free counters for your usage |
|
static mixed | $emailProbability |
|
line 101 |
|
static mixed | $html |
|
line 50 |
|
static int | $keysToHide | array('password', 'passwd', 'pass', 'pwd', 'creditcard', 'credit card', 'cc', 'pin') |
line 65 sensitive keys not displayed by Debug::dump() when Debug::$productionMode in on |
|
static callback | $mailer | array(__CLASS__, 'defaultMailer') |
line 98 |
|
static int | $maxDepth | 3 |
line 59 how many nested levels of array/object properties display Debug::dump() |
|
static int | $maxLen | 150 |
line 62 how long strings display Debug::dump() |
|
static bool | $productionMode |
|
line 53 determines whether a server is running in production mode |
|
static int | $time |
|
line 110 |
Method Details | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 709 addColophonpublic static void addColophon (callback $callback) Add custom descriptions.
|
||||||||||||||||||
line 665 disableProfilerpublic static void disableProfiler () Disables profiler.
|
||||||||||||||||||
line 160 dumppublic static mixed dump (mixed $var, [bool $return = Dumps information about a variable in readable format.
|
||||||||||||||||||
line 307 enablepublic static void enable ([bool $productionMode = Enables displaying or logging errors and exceptions.
|
||||||||||||||||||
line 653 enableProfilerpublic static void enableProfiler () Enables profiler.
|
||||||||||||||||||
line 784 fireDumppublic static bool fireDump (mixed $var, string $key) Sends variable dump to Firebug tab request/server.
|
||||||||||||||||||
line 798 fireLogpublic static bool fireLog (mixed $message, [string $priority = Sends message to Firebug console.
|
||||||||||||||||||
line 729 getDefaultColophonspublic static array getDefaultColophons (string $sender) Returns default colophons.
|
||||||||||||||||||
line 138 initpublic static void init () Static class constructor.
|
||||||||||||||||||
line 400 isEnabledpublic static void isEnabled () Unregister error handler routine.
|
||||||||||||||||||
line 518 processExceptionpublic static void processException ($exception, [bool $outputAllowed = Logs or displays exception.
|
||||||||||||||||||
line 285 timerpublic static elapsed timer ([string $name = Starts/stops stopwatch.
|
||||||||||||||||||
line 128 __constructpublic Debug __construct () Static class - cannot be instantiated.
|