PHP Класс Gajus\Bugger\Bugger

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
getTracestack ( ) : array
resetTick ( )
stack ( mixed $expression = null ) : null Stacks information about the expression and dumps the stack at the end of the script execution.
tick ( integer $true_after, string $namespace = 'default' ) : boolean Tracks the number of times tick function itself has been called and returns true when the desired number within the namespace is reached.
trace ( mixed $expression = null ) : null Terminates the script, discards the output buffer, dumps information about the expression including backtrace up to the trace call.

Приватные методы

Метод Описание
getArgumentsDump ( array $args ) : array Get a var_dump of the arguments
getBacktrace ( ) : array
sanitise ( string $output ) : string Convert control characters to hex representation.
translateTimestamp ( string $output ) : string Match everything that looks like a timestamp and convert it to a human readable date-time format.

Описание методов

getTracestack() публичный статический Метод

public static getTracestack ( ) : array
Результат array

resetTick() публичный статический Метод

public static resetTick ( )

stack() публичный статический Метод

Stacks information about the expression and dumps the stack at the end of the script execution.
public static stack ( mixed $expression = null ) : null
$expression mixed The variable you want to dump.
Результат null

tick() публичный статический Метод

Tracks the number of times tick function itself has been called and returns true when the desired number within the namespace is reached.
public static tick ( integer $true_after, string $namespace = 'default' ) : boolean
$true_after integer Number of the itteration after which response is true.
$namespace string Itteration namespace.
Результат boolean

trace() публичный статический Метод

Terminates the script, discards the output buffer, dumps information about the expression including backtrace up to the trace call.
public static trace ( mixed $expression = null ) : null
$expression mixed The variable you want to dump.
Результат null