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
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Templating
    • Utils
  • NetteModule
  • none
  • Tracy
    • Bridges
      • Nette

Classes

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

Interfaces

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

Class Debugger

Debugger: displays and logs errors.

Direct known subclasses

Nette\Diagnostics\Debugger
Namespace: Tracy
Author: David Grudl
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
mixed
production, development mode, autodetection or IP address(es) whitelist.
$logDirectory
string
error log directory
$email
string
administrator email; enables email sending in production mode
public static boolean
# isEnabled( )

Returns

boolean
public static Tracy\BlueScreen
# getBlueScreen( )

Returns

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

Returns

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

Returns

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

Returns

Tracy\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
mixed
variable to dump
$return
boolean
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
string
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
mixed
variable to dump
$title
string
optional title
$options
array
dumper options

Returns

mixed
variable itself

TracySkipLocation

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

Logs message or exception.

Logs message or exception.

Parameters

$message
string|Exception
$priority

Returns

mixed
public static boolean
# fireLog( mixed $message )

Sends message to FireLogger console.

Sends message to FireLogger console.

Parameters

$message
mixed
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
string|array
IP addresses or computer names whitelist detection

Returns

boolean
Constants summary
string VERSION '2.3.1'
#
boolean DEVELOPMENT FALSE
#

server modes Tracy\Debugger::enable()

server modes Tracy\Debugger::enable()

boolean PRODUCTION TRUE
#

server modes Tracy\Debugger::enable()

server modes Tracy\Debugger::enable()

DETECT NULL
#

server modes Tracy\Debugger::enable()

server modes Tracy\Debugger::enable()

string COOKIE_SECRET 'tracy-debug'
#
string DEBUG Tracy\ILogger::DEBUG
#

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

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

string INFO Tracy\ILogger::INFO
#

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

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

string WARNING Tracy\ILogger::WARNING
#

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

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

string ERROR Tracy\ILogger::ERROR
#

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

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

string EXCEPTION Tracy\ILogger::EXCEPTION
#

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

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

string CRITICAL Tracy\ILogger::CRITICAL
#

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

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

Properties summary
public static string $version Tracy\Debugger::VERSION
#

Deprecated

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

in production mode is suppressed any debugging output

in production mode is suppressed any debugging output

public static boolean|integer $strictMode FALSE
#

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

public static boolean $scream FALSE
#

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

public static array $onFatalError array()
#

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

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

public static integer $maxDepth 3
#

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

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

public static integer $maxLen 150
#

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

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

public static boolean $showLocation FALSE
#

display location? Tracy\Debugger::dump()

display location? Tracy\Debugger::dump()

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 0
#

log bluescreen in production mode for this error severity

log bluescreen in production mode for this error severity

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 'editor://open/?file=%file&line=%line'
#

URI pattern mask to open editor

URI pattern mask to open editor

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.1 API API documentation generated by ApiGen 2.8.0