Class Debug (namespace Nette)
Debug static class.
| Constructor Summary | |
|---|---|
| public |
__construct
()
Static class - cannot be instantiated.
|
| Method Summary | |
|---|---|
| static void |
addColophon
(callback $callback)
Add custom descriptions.
|
| 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 void |
errorHandler
(int $severity, string $message, string $file, int $line, array $context)
Own error handler.
|
| static void |
exceptionHandler
($exception)
Debug exception handler.
|
| 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 |
paintBlueScreen
($exception)
Paint blue screen.
|
| static void |
Paint profiler window.
|
| static void |
processException
($exception, [bool $outputAllowed =
FALSE])
Logs or displays exception.
|
| static void |
sendEmail
(string $message)
Sends e-mail notification.
|
| static elapsed |
timer
([string $name =
NULL])
Starts/stops stopwatch.
|
| static string |
writeFile
(string $buffer)
Redirects output to file.
|
| Constant Summary | |||
|---|---|---|---|
| string | ERROR |
'ERROR' |
line 107 FirePHP log priority |
| string | INFO |
'INFO' |
line 105 FirePHP log priority |
| string | LOG |
'LOG' |
line 104 FirePHP log priority |
| string | WARN |
'WARN' |
line 106 FirePHP log priority |
| Variable Summary | ||||
|---|---|---|---|---|
| static bool | $consoleMode | |
line 50 determines whether a server is running in console mode |
|
| static array | $counters | array() |
line 41 free counters for your usage |
|
| static float | $emailProbability | 0.01 |
line 92 probability that logfile will be checked |
|
| static mixed | $html | |
line 44 |
|
| static int | $keysToHide | array('password', 'passwd', 'pass', 'pwd', 'creditcard', 'credit card', 'cc', 'pin') |
line 59 sensitive keys not displayed by Debug::dump() when Debug::$productionMode in on |
|
| static callback | $mailer | array(__CLASS__, 'defaultMailer') |
line 89 |
|
| static int | $maxDepth | 3 |
line 53 how many nested levels of array/object properties display Debug::dump() |
|
| static int | $maxLen | 150 |
line 56 how long strings display Debug::dump() |
|
| static bool | $productionMode | |
line 47 determines whether a server is running in production mode |
|
| static int | $time | |
line 101 |
|
| Constructor Details | ||
|---|---|---|
|
line 115 __constructpublic __construct () Static class - cannot be instantiated. |
||
| Method Details | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
line 645 addColophonpublic static void addColophon (callback $callback) Add custom descriptions.
|
||||||||||||||||||||||||||||||
|
line 147 dumppublic static mixed dump (mixed $var, [bool $return = Dumps information about a variable in readable format.
|
||||||||||||||||||||||||||||||
|
line 294 enablepublic static void enable ([int $level = Enables displaying or logging errors and exceptions.
|
||||||||||||||||||||||||||||||
|
line 605 enableProfilerpublic static void enableProfiler () Enables profiler.
|
||||||||||||||||||||||||||||||
|
line 425 errorHandlerpublic static void errorHandler (int $severity, string $message, string $file, int $line, array $context) Own error handler.
|
||||||||||||||||||||||||||||||
|
line 402 exceptionHandlerpublic static void exceptionHandler ($exception) Debug exception handler.
|
||||||||||||||||||||||||||||||
|
line 711 fireDumppublic static bool fireDump (mixed $var, string $key) Sends variable dump to Firebug tab request/server.
|
||||||||||||||||||||||||||||||
|
line 725 fireLogpublic static bool fireLog (mixed $message, [string $priority = Sends message to Firebug console.
|
||||||||||||||||||||||||||||||
|
line 660 getDefaultColophonspublic static array getDefaultColophons (string $sender) Returns default colophons.
|
||||||||||||||||||||||||||||||
|
line 125 initpublic static void init () Static class constructor.
|
||||||||||||||||||||||||||||||
|
line 389 isEnabledpublic static void isEnabled () Unregister error handler routine.
|
||||||||||||||||||||||||||||||
|
line 524 paintBlueScreenpublic static void paintBlueScreen ($exception) Paint blue screen.
|
||||||||||||||||||||||||||||||
|
line 618 paintProfilerpublic static void paintProfiler () Paint profiler window.
|
||||||||||||||||||||||||||||||
|
line 477 processExceptionpublic static void processException ($exception, [bool $outputAllowed = Logs or displays exception.
|
||||||||||||||||||||||||||||||
|
line 550 sendEmailpublic static void sendEmail (string $message) Sends e-mail notification.
|
||||||||||||||||||||||||||||||
|
line 272 timerpublic static elapsed timer ([string $name = Starts/stops stopwatch.
|
||||||||||||||||||||||||||||||
|
line 538 writeFilepublic static string writeFile (string $buffer) Redirects output to file.
|
||||||||||||||||||||||||||||||