PHP Class Gajus\Bugger\Bugger

Datei anzeigen Open project: gajus/bugger Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
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.

Method Details

getTracestack() public static method

public static getTracestack ( ) : array
return array

resetTick() public static method

public static resetTick ( )

stack() public static method

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.
return null

tick() public static method

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.
return boolean

trace() public static method

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.
return null