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
VERSION |
|
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() |
EXCEPTION |
Debugger::log()} and {@link Debugger::fireLog() |
CRITICAL |
Debugger::log()} and {@link Debugger::fireLog() |
Properties
static deprecated | $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 int | $logSeverity | ||
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 uncaught exception.
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 140
final
__construct()
Static class - cannot be instantiated.
at line 153
static void
enable($mode = NULL, $logDirectory = NULL, $email = NULL)
Enables displaying or logging errors and exceptions.
at line 221
static BlueScreen
getBlueScreen()
No description
at line 238
static Bar
getBar()
No description
at line 259
static void
setLogger($logger)
No description
at line 268
static Logger
getLogger()
No description
at line 284
static FireLogger
getFireLogger()
No description
at line 297
static bool
isEnabled()
Is Debug enabled?
at line 309
static string
log($message, $priority = self::INFO)
Logs message or exception to file (if not disabled) and sends email notification (if enabled).
at line 369
static void
_shutdownHandler()
internal |
Shutdown handler to catch fatal errors and execute of the planned activities.
at line 391
static void
_exceptionHandler($exception, $exit = TRUE)
internal |
Handler to catch uncaught exception.
at line 476
static bool
_errorHandler($severity, $message, $file, $line, $context)
internal |
Handler to catch warnings and notices.
at line 536
static mixed
dump($var, $return = FALSE)
Dumps information about a variable in readable format.
at line 563
static float
timer($name = NULL)
Starts/stops stopwatch.
at line 581
static mixed
barDump($var, $title = NULL, array $options = NULL)
Dumps information about a variable in Tracy Debug Bar.
at line 599
static bool
fireLog($message)
Sends message to FireLogger console.