class Debugger

Debugger: displays and logs errors.

Constants

VERSION

DEVELOPMENT

server modes Debugger::enable()

PRODUCTION

server modes Debugger::enable()

DETECT

server modes Debugger::enable()

COOKIE_SECRET

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 bool $showBar
static bool|int $strictMode
static bool $scream
static array $onFatalError
static int $maxDepth
static int $maxLen
static bool $showLocation
static string $logDirectory
static int $logSeverity
static string|array $email
static int $time
static deprecated $source
static string $editor
static string $browser
static string $errorTemplate

Methods

__construct()

Static class - cannot be instantiated.

static void
enable($mode = NULL, $logDirectory = NULL, $email = NULL)

Enables displaying or logging errors and exceptions.

static bool
isEnabled()

No description

static void
shutdownHandler()

Shutdown handler to catch fatal errors and execute of the planned activities.

static void
exceptionHandler($exception, $exit = TRUE)

Handler to catch uncaught exception.

static bool
errorHandler($severity, $message, $file, $line, $context)

Handler to catch warnings and notices.

static BlueScreen
getBlueScreen()

No description

static Bar
getBar()

No description

static void
setLogger(ILogger $logger)

No description

static ILogger
getLogger()

No description

static ILogger
getFireLogger()

No description

static mixed
dump($var, $return = FALSE)

Dumps information about a variable in readable format.

static float
timer($name = NULL)

Starts/stops stopwatch.

static mixed
barDump($var, $title = NULL, array $options = NULL)

Dumps information about a variable in Tracy Debug Bar.

static mixed
log($message, $priority = ILogger::INFO)

Logs message or exception.

static bool
fireLog($message)

Sends message to FireLogger console.

static bool
detectDebugMode($list = NULL)

Detects debug mode by IP address.

Details

at line 127
final __construct()

Static class - cannot be instantiated.

at line 140
static void enable($mode = NULL, $logDirectory = NULL, $email = NULL)

Enables displaying or logging errors and exceptions.

Parameters

$mode
$logDirectory
$email

Return Value

void

at line 194
static bool isEnabled()

No description

Return Value

bool

at line 205
static void shutdownHandler()

internal  
 

Shutdown handler to catch fatal errors and execute of the planned activities.

Return Value

void

at line 232
static void exceptionHandler($exception, $exit = TRUE)

internal  
 

Handler to catch uncaught exception.

Parameters

$exception
$exit

Return Value

void

at line 323
static bool errorHandler($severity, $message, $file, $line, $context)

internal  
 

Handler to catch warnings and notices.

Parameters

$severity
$message
$file
$line
$context

Return Value

bool

FALSE to call normal error handler, NULL otherwise

Exceptions

ErrorException

at line 414
static BlueScreen getBlueScreen()

No description

Return Value

BlueScreen

at line 431
static Bar getBar()

No description

Return Value

Bar

at line 446
static void setLogger(ILogger $logger)

No description

Parameters

ILogger $logger

Return Value

void

at line 455
static ILogger getLogger()

No description

Return Value

ILogger

at line 469
static ILogger getFireLogger()

No description

Return Value

ILogger

at line 488
static mixed dump($var, $return = FALSE)

Dumps information about a variable in readable format.

Parameters

$var
$return

Return Value

mixed

variable itself or dump

at line 515
static float timer($name = NULL)

Starts/stops stopwatch.

Parameters

$name

Return Value

float

elapsed seconds

at line 533
static mixed barDump($var, $title = NULL, array $options = NULL)

Dumps information about a variable in Tracy Debug Bar.

Parameters

$var
$title
array $options

Return Value

mixed

variable itself

at line 555
static mixed log($message, $priority = ILogger::INFO)

Logs message or exception.

Parameters

$message
$priority

Return Value

mixed

at line 566
static bool fireLog($message)

Sends message to FireLogger console.

Parameters

$message

Return Value

bool

was successful?

at line 579
static bool detectDebugMode($list = NULL)

Detects debug mode by IP address.

Parameters

$list

Return Value

bool