PHP Class PHPDaemon\Core\Debug

Author: Vasily Zorin ([email protected])
Inheritance: use trait PHPDaemon\Traits\ClassWatchdog, use trait PHPDaemon\Traits\StaticObjectWatchdog
Afficher le fichier Open project: kakserpom/phpdaemon Class Usage Examples

Méthodes publiques

Méthode Description
backtrace ( $bool = false ) : string Returns textual backtrace
dump ( $args ) : string Wrapper of var_dump
exportBytes ( string $str, boolean $all = false ) : string Export binary data
json ( mixed $m ) : string Returns JSON
prettyJson ( mixed $m ) : string Returns pretty-printed JSON
proxy ( callable $cb, mixed $name = null ) : callable Returns a proxy callback function with logging for debugging purposes
refcount ( &$var ) : integer Get refcount of the given variable
zdump ( $args ) : string Wrapper of debug_zval_dump

Method Details

backtrace() public static méthode

Returns textual backtrace
public static backtrace ( $bool = false ) : string
Résultat string

dump() public static méthode

Wrapper of var_dump
public static dump ( $args ) : string
Résultat string Result of var_dump()

exportBytes() public static méthode

Export binary data
public static exportBytes ( string $str, boolean $all = false ) : string
$str string String
$all boolean Whether to replace all of chars with escaped sequences
Résultat string Escaped string

json() public static méthode

Returns JSON
public static json ( mixed $m ) : string
$m mixed Data
Résultat string

prettyJson() public static méthode

Returns pretty-printed JSON
public static prettyJson ( mixed $m ) : string
$m mixed Data
Résultat string

proxy() public static méthode

Returns a proxy callback function with logging for debugging purposes
public static proxy ( callable $cb, mixed $name = null ) : callable
$cb callable Callback
$name mixed Data
Résultat callable

refcount() public static méthode

Get refcount of the given variable
public static refcount ( &$var ) : integer
Résultat integer

zdump() public static méthode

Wrapper of debug_zval_dump
public static zdump ( $args ) : string
Résultat string Result of debug_zval_dump()