Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationDI
      • ApplicationLatte
      • ApplicationTracy
      • CacheDI
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsDI
      • FormsLatte
      • Framework
      • HttpDI
      • HttpTracy
      • MailDI
      • ReflectionDI
      • SecurityDI
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Conventions
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Utils
  • none
  • Tracy
    • Bridges
      • Nette

Classes

  • Bar
  • BlueScreen
  • Debugger
  • Dumper
  • FireLogger
  • Helpers
  • Logger
  • OutputDebugger

Interfaces

  • IBarPanel
  • ILogger
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class Debugger

Debugger: displays and logs errors.

Namespace: Tracy
Located at Tracy/Debugger.php
Methods summary
final public
# __construct( )

Static class - cannot be instantiated.

Static class - cannot be instantiated.

public static
# enable( mixed $mode = NULL, string $logDirectory = NULL, string $email = NULL )

Enables displaying or logging errors and exceptions.

Enables displaying or logging errors and exceptions.

Parameters

$mode
development mode, autodetection or IP address(es) whitelist.
$logDirectory
log directory
$email
email; enables email sending in production mode
public static boolean
# isEnabled( )

Returns

boolean
bool
public static Tracy\BlueScreen
# getBlueScreen( )

Returns

Tracy\BlueScreen
BlueScreen
public static Tracy\Bar
# getBar( )

Returns

Tracy\Bar
Bar
public static
# setLogger( Tracy\ILogger $logger )
public static Tracy\ILogger
# getLogger( )

Returns

Tracy\ILogger
ILogger
public static Tracy\ILogger
# getFireLogger( )

Returns

Tracy\ILogger
ILogger
public static mixed
# dump( mixed $var, boolean $return = FALSE )

Dumps information about a variable in readable format.

Dumps information about a variable in readable format.

Parameters

$var
to dump
$return
output instead of printing it? (bypasses $productionMode)

Returns

mixed
variable itself or dump

TracySkipLocation

public static float
# timer( string $name = NULL )

Starts/stops stopwatch.

Starts/stops stopwatch.

Parameters

$name
name

Returns

float
elapsed seconds
public static mixed
# barDump( mixed $var, string $title = NULL, array $options = NULL )

Dumps information about a variable in Tracy Debug Bar.

Dumps information about a variable in Tracy Debug Bar.

Parameters

$var
to dump
$title
title
$options
options

Returns

mixed
variable itself

TracySkipLocation

public static mixed
# log( string|Exception|Throwable $message, $priority = Tracy\ILogger::INFO )

Logs message or exception.

Logs message or exception.

Parameters

$message
$priority

Returns

mixed
mixed
public static boolean
# fireLog( mixed $message )

Sends message to FireLogger console.

Sends message to FireLogger console.

Parameters

$message
to log

Returns

boolean
was successful?
public static boolean
# detectDebugMode( string|array $list = NULL )

Detects debug mode by IP address.

Detects debug mode by IP address.

Parameters

$list
addresses or computer names whitelist detection

Returns

boolean
bool
Constants summary
string VERSION
#'2.3.11'
boolean DEVELOPMENT

server modes Tracy\Debugger::enable()

server modes Tracy\Debugger::enable()

#FALSE
boolean PRODUCTION

server modes Tracy\Debugger::enable()

server modes Tracy\Debugger::enable()

#TRUE
DETECT

server modes Tracy\Debugger::enable()

server modes Tracy\Debugger::enable()

#NULL
string COOKIE_SECRET
#'tracy-debug'
string DEBUG

Tracy\Debugger::log() and Tracy\Debugger::fireLog()

Tracy\Debugger::log() and Tracy\Debugger::fireLog()

#Tracy\ILogger::DEBUG
string INFO

Tracy\Debugger::log() and Tracy\Debugger::fireLog()

Tracy\Debugger::log() and Tracy\Debugger::fireLog()

#Tracy\ILogger::INFO
string WARNING

Tracy\Debugger::log() and Tracy\Debugger::fireLog()

Tracy\Debugger::log() and Tracy\Debugger::fireLog()

#Tracy\ILogger::WARNING
string ERROR

Tracy\Debugger::log() and Tracy\Debugger::fireLog()

Tracy\Debugger::log() and Tracy\Debugger::fireLog()

#Tracy\ILogger::ERROR
string EXCEPTION

Tracy\Debugger::log() and Tracy\Debugger::fireLog()

Tracy\Debugger::log() and Tracy\Debugger::fireLog()

#Tracy\ILogger::EXCEPTION
string CRITICAL

Tracy\Debugger::log() and Tracy\Debugger::fireLog()

Tracy\Debugger::log() and Tracy\Debugger::fireLog()

#Tracy\ILogger::CRITICAL
Properties summary
public static string $version

Deprecated

#Tracy\Debugger::VERSION
public static boolean $productionMode

in production mode is suppressed any debugging output

in production mode is suppressed any debugging output

#Tracy\Debugger::DETECT
public static boolean $showBar

whether to display debug bar in development mode

whether to display debug bar in development mode

#TRUE
public static boolean|integer $strictMode

determines whether any error will cause immediate death; if integer that it's matched against error severity

determines whether any error will cause immediate death; if integer that it's matched against error severity

#FALSE
public static boolean $scream

disables the @ (shut-up) operator so that notices and warnings are no longer hidden

disables the @ (shut-up) operator so that notices and warnings are no longer hidden

#FALSE
public static array $onFatalError

of callables specifies the functions that are automatically called after fatal error

of callables specifies the functions that are automatically called after fatal error

#array()
public static integer $maxDepth

how many nested levels of array/object properties display Tracy\Debugger::dump()

how many nested levels of array/object properties display Tracy\Debugger::dump()

#3
public static integer $maxLen

how long strings display Tracy\Debugger::dump()

how long strings display Tracy\Debugger::dump()

#150
public static boolean $showLocation

display location? Tracy\Debugger::dump()

display location? Tracy\Debugger::dump()

#FALSE
public static string $logDirectory

name of the directory where errors should be logged

name of the directory where errors should be logged

#
public static integer $logSeverity

log bluescreen in production mode for this error severity

log bluescreen in production mode for this error severity

#0
public static string|array $email

email(s) to which send error notifications

email(s) to which send error notifications

#
public static integer $time

timestamp with microseconds of the start of the request

timestamp with microseconds of the start of the request

#
public static $source

Deprecated

#
public static string $editor

URI pattern mask to open editor

URI pattern mask to open editor

#'editor://open/?file=%file&line=%line'
public static string $browser

command to open browser (use 'start ""' in Windows)

command to open browser (use 'start ""' in Windows)

#
public static string $errorTemplate

custom static error template

custom static error template

#
Nette 2.3-20161221 API API documentation generated by ApiGen 2.8.0