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() |
DEVELOPMENT |
|
PRODUCTION |
|
DETECT |
|
CookieSecret |
|
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 int | $reservedMemorySize | ||
static ?array | $obStatus | ||
static bool|int | $strictMode | ||
static bool|int | $scream | ||
static callable[] | $onFatalError | ||
static int | $maxDepth | ||
static int | $maxLength | ||
static int | $maxItems | ||
static bool | $showLocation | ||
static string[] | $keysToHide | ||
static string | $dumpTheme | ||
static deprecated | $maxLen | ||
static string|null | $logDirectory | ||
static int | $logSeverity | ||
static string|array | |||
static float | $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
No description
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.
No description
No description
Detects debug mode by IP address.
Details
at line 167
final
__construct()
Static class - cannot be instantiated.
at line 179
static void
enable(bool|string|string[] $mode = null, string|null $logDirectory = null, string|array $email = null)
Enables displaying or logging errors and exceptions.
at line 259
static void
dispatch()
No description
at line 274
static void
renderLoader()
Renders loading
at line 280
static bool
isEnabled()
No description
at line 290
static void
shutdownHandler()
internal |
Shutdown handler to catch fatal errors and execute of the planned activities.
at line 316
static void
exceptionHandler(Throwable $exception)
internal |
Handler to catch uncaught exception.
at line 350
static bool
errorHandler(int $severity, string $message, string $file, int $line, array|null $context = null)
internal |
Handler to catch warnings and notices.
at line 395
static void
removeOutputBuffers(bool $errorOccurred)
internal |
No description
at line 416
static BlueScreen
getBlueScreen()
No description
at line 431
static Bar
getBar()
No description
at line 444
static void
setLogger(ILogger $logger)
No description
at line 450
static ILogger
getLogger()
No description
at line 462
static ILogger
getFireLogger()
No description
at line 473
static ProductionStrategy|DevelopmentStrategy
getStrategy()
No description
at line 485
static void
setSessionStorage(SessionStorage $storage)
No description
at line 496
static SessionStorage
getSessionStorage()
internal |
No description
at line 521
static mixed
dump(mixed $var, bool $return = false)
Dumps information about a variable in readable format.
at line 557
static float
timer(string|null $name = null)
Starts/stops stopwatch.
at line 573
static mixed
barDump(mixed $var, string|null $title = null, array $options = [])
Dumps information about a variable in Tracy Debug Bar.
at line 599
static mixed
log(mixed $message, string $level = ILogger::INFO)
Logs message or exception.
at line 609
static bool
fireLog(mixed $message)
Sends message to FireLogger console.
at line 618
static void
addSourceMapper(callable $mapper)
internal |
No description
at line 625
static array|null
mapSource(string $file, int $line)
No description
at line 641
static bool
detectDebugMode(string|array $list = null)
Detects debug mode by IP address.