Debugger
class Debugger
Debugger: displays and logs errors.
Constants
VERSION |
|
DEVELOPMENT |
server modes for Debugger::enable() |
PRODUCTION |
server modes for Debugger::enable() |
DETECT |
server modes for Debugger::enable() |
COOKIE_SECRET |
|
DEBUG |
for Debugger::log() and Debugger::fireLog() |
INFO |
for Debugger::log() and Debugger::fireLog() |
WARNING |
for Debugger::log() and Debugger::fireLog() |
ERROR |
for Debugger::log() and Debugger::fireLog() |
EXCEPTION |
for Debugger::log() and Debugger::fireLog() |
CRITICAL |
for Debugger::log() and Debugger::fireLog() |
Properties
static bool | $productionMode | ||
static bool | $showBar | ||
static bool | $showFireLogger | ||
static bool|int | $strictMode | ||
static bool | $scream | ||
static callable[] | $onFatalError | ||
static int | $maxDepth | ||
static int | $maxLength | ||
static bool | $showLocation | ||
static deprecated | $maxLen | ||
static string|null | $logDirectory | ||
static int | $logSeverity | ||
static string|array | |||
static int | $time | ||
static string | $editor | ||
static array | $editorMapping | ||
static string | $browser | ||
static string | $errorTemplate | ||
static string[] | $customCssFiles | ||
static string[] | $customJsFiles |
Methods
Static class - cannot be instantiated.
Enables displaying or logging errors and exceptions.
No description
Renders loading
No description
Shutdown handler to catch fatal errors and execute of the planned activities.
Handler to catch warnings and notices.
No description
No description
Dumps information about a variable in readable format.
Starts/stops stopwatch.
Dumps information about a variable in Tracy Debug Bar.
Logs message or exception.
Sends message to FireLogger console.
Detects debug mode by IP address.
Details
at line 135
final
__construct()
Static class - cannot be instantiated.
at line 148
static void
enable(mixed $mode = null, string $logDirectory = null, string $email = null)
Enables displaying or logging errors and exceptions.
at line 210
static void
dispatch()
No description
at line 240
static void
renderLoader()
Renders loading
at line 251
static bool
isEnabled()
No description
at line 262
static void
shutdownHandler()
internal |
Shutdown handler to catch fatal errors and execute of the planned activities.
at line 289
static void
exceptionHandler(Exception|Throwable $exception, $exit = true)
internal |
Handler to catch uncaught exception.
at line 376
static bool|null
errorHandler($severity, $message, $file, $line, $context = [])
internal |
Handler to catch warnings and notices.
at line 461
static BlueScreen
getBlueScreen()
No description
at line 478
static Bar
getBar()
No description
at line 493
static void
setLogger(ILogger $logger)
No description
at line 502
static ILogger
getLogger()
No description
at line 516
static ILogger
getFireLogger()
No description
at line 535
static mixed
dump(mixed $var, bool $return = false)
Dumps information about a variable in readable format.
at line 562
static float
timer(string $name = null)
Starts/stops stopwatch.
at line 580
static mixed
barDump(mixed $var, string $title = null, array $options = null)
Dumps information about a variable in Tracy Debug Bar.
at line 602
static mixed
log(mixed $message, $priority = ILogger::INFO)
Logs message or exception.
at line 613
static bool
fireLog(mixed $message)
Sends message to FireLogger console.
at line 626
static bool
detectDebugMode(string|array $list = null)
Detects debug mode by IP address.