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
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
      • Traits
    • Reflection
    • Security
    • Tokenizer
    • Utils
  • Tracy
    • Bridges
      • Nette
  • none

Classes

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

Interfaces

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

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
production, development mode, autodetection or IP address(es) whitelist.
$logDirectory
error log directory
$email
administrator email; enables email sending in production mode
public static
# dispatch( )
public static
# renderLoader( )

Renders loading <script>

Renders loading <script>

public static boolean
# isEnabled( )

Returns

boolean
bool
public static
# shutdownHandler( )

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

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

Internal

public static
# exceptionHandler( Exception|Throwable $exception, $exit = true )

Handler to catch uncaught exception.

Handler to catch uncaught exception.

Parameters

$exception
$exit

Internal

public static boolean|null
# errorHandler( $severity, $message, $file, $line, $context = [] )

Handler to catch warnings and notices.

Handler to catch warnings and notices.

Returns

boolean|null
false to call normal error handler, null otherwise

Throws

ErrorException
ErrorException

Internal

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
variable to dump
$return
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

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
$title
$options

Returns

mixed
variable itself

TracySkipLocation

public static mixed
# log( mixed $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

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
IP addresses or computer names whitelist detection

Returns

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

server modes for Debugger::enable()

server modes for Debugger::enable()

#false
boolean PRODUCTION

server modes for Debugger::enable()

server modes for Debugger::enable()

#true
DETECT

server modes for Debugger::enable()

server modes for Debugger::enable()

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

for Debugger::log() and Debugger::fireLog()

for Debugger::log() and Debugger::fireLog()

#Tracy\ILogger::DEBUG
string INFO

for Debugger::log() and Debugger::fireLog()

for Debugger::log() and Debugger::fireLog()

#Tracy\ILogger::INFO
string WARNING

for Debugger::log() and Debugger::fireLog()

for Debugger::log() and Debugger::fireLog()

#Tracy\ILogger::WARNING
string ERROR

for Debugger::log() and Debugger::fireLog()

for Debugger::log() and Debugger::fireLog()

#Tracy\ILogger::ERROR
string EXCEPTION

for Debugger::log() and Debugger::fireLog()

for Debugger::log() and Debugger::fireLog()

#Tracy\ILogger::EXCEPTION
string CRITICAL

for Debugger::log() and Debugger::fireLog()

for Debugger::log() and Debugger::fireLog()

#Tracy\ILogger::CRITICAL
Properties summary
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 $showFireLogger

whether to send data to FireLogger in development mode

whether to send data to FireLogger in development mode

#true
public static boolean|integer $strictMode

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

determines whether any error will cause immediate death in development mode; 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 callable[] $onFatalError

functions that are automatically called after fatal error

functions that are automatically called after fatal error

#[]
public static integer $maxDepth

how many nested levels of array/object properties display by dump()

how many nested levels of array/object properties display by dump()

#3
public static integer $maxLength

how long strings display by dump()

how long strings display by dump()

#150
public static boolean $showLocation

display location by dump()?

display location by dump()?

#false
public static integer $maxLen

Deprecated

#150
public static string|null $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 string $editor

URI pattern mask to open editor

URI pattern mask to open editor

#'editor://%action/?file=%file&line=%line&search=%search&replace=%replace'
public static array $editorMapping

replacements in path

replacements in path

#[]
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

#
public static string[] $customCssFiles
#[]
public static string[] $customJsFiles
#[]
Nette 2.4-20180918 API API documentation generated by ApiGen 2.8.0