PHP 클래스 PHPDaemon\Core\Debug

저자: Vasily Zorin ([email protected])
상속: use trait PHPDaemon\Traits\ClassWatchdog, use trait PHPDaemon\Traits\StaticObjectWatchdog
파일 보기 프로젝트 열기: kakserpom/phpdaemon 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

backtrace() 공개 정적인 메소드

Returns textual backtrace
public static backtrace ( $bool = false ) : string
리턴 string

dump() 공개 정적인 메소드

Wrapper of var_dump
public static dump ( $args ) : string
리턴 string Result of var_dump()

exportBytes() 공개 정적인 메소드

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
리턴 string Escaped string

json() 공개 정적인 메소드

Returns JSON
public static json ( mixed $m ) : string
$m mixed Data
리턴 string

prettyJson() 공개 정적인 메소드

Returns pretty-printed JSON
public static prettyJson ( mixed $m ) : string
$m mixed Data
리턴 string

proxy() 공개 정적인 메소드

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
리턴 callable

refcount() 공개 정적인 메소드

Get refcount of the given variable
public static refcount ( &$var ) : integer
리턴 integer

zdump() 공개 정적인 메소드

Wrapper of debug_zval_dump
public static zdump ( $args ) : string
리턴 string Result of debug_zval_dump()