Debugger
class Debugger
Debugger: displays and logs errors.
Behavior is determined by two factors: mode & output
- modes: production / development
- output: HTML / AJAX / CLI / other (e.g. XML)
Constants
DEVELOPMENT |
server modes Debugger::enable() |
PRODUCTION |
server modes Debugger::enable() |
DETECT |
server modes Debugger::enable() |
DEBUG |
Debugger::log()} and {@link Debugger::fireLog() |
INFO |
Debugger::log()} and {@link Debugger::fireLog() |
WARNING |
Debugger::log()} and {@link Debugger::fireLog() |
ERROR |
Debugger::log()} and {@link Debugger::fireLog() |
CRITICAL |
Debugger::log()} and {@link Debugger::fireLog() |
Properties
static string | $version | ||
static bool | $productionMode | ||
static int | $time | ||
static string | $source | ||
static string | $editor | ||
static string | $browser | ||
static int | $maxDepth | ||
static int | $maxLen | ||
static bool | $showLocation | ||
static bool|int | $strictMode | ||
static bool | $scream | ||
static array | $onFatalError | ||
static internal | $errorTypes | ||
static string | $logDirectory | ||
static string|array | |||
static deprecated | $mailer | ||
static deprecated | $emailSnooze |
Methods
Static class - cannot be instantiated.
Enables displaying or logging errors and exceptions.
No description
No description
No description
Is Debug enabled?
Logs message or exception to file (if not disabled) and sends email notification (if enabled).
Shutdown handler to catch fatal errors and execute of the planned activities.
Handler to catch warnings and notices.
Dumps information about a variable in readable format.
Starts/stops stopwatch.
Dumps information about a variable in Tracy Debug Bar.
Sends message to FireLogger console.
Details
at line 131
final
__construct()
Static class - cannot be instantiated.
at line 144
static void
enable($mode = NULL, $logDirectory = NULL, $email = NULL)
Enables displaying or logging errors and exceptions.
at line 219
static BlueScreen
getBlueScreen()
No description
at line 236
static Bar
getBar()
No description
at line 257
static void
setLogger($logger)
No description
at line 266
static Logger
getLogger()
No description
at line 282
static FireLogger
getFireLogger()
No description
at line 295
static bool
isEnabled()
Is Debug enabled?
at line 307
static string
log($message, $priority = self::INFO)
Logs message or exception to file (if not disabled) and sends email notification (if enabled).
at line 370
static void
_shutdownHandler()
internal |
Shutdown handler to catch fatal errors and execute of the planned activities.
at line 392
static void
_exceptionHandler(Exception $exception, $shutdown = FALSE)
internal |
Handler to catch uncaught exception.
at line 467
static bool
_errorHandler($severity, $message, $file, $line, $context)
internal |
Handler to catch warnings and notices.
at line 521
static mixed
dump($var, $return = FALSE)
Dumps information about a variable in readable format.
at line 548
static float
timer($name = NULL)
Starts/stops stopwatch.
at line 566
static mixed
barDump($var, $title = NULL, array $options = NULL)
Dumps information about a variable in Tracy Debug Bar.
at line 584
static bool
fireLog($message)
Sends message to FireLogger console.