PHP Class Gajus\Bugger\Bugger

Afficher le fichier Open project: gajus/bugger Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static getTracestack ( ) : array
Résultat array

resetTick() public static méthode

public static resetTick ( )

stack() public static méthode

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.
Résultat null

tick() public static méthode

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.
Résultat boolean

trace() public static méthode

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.
Résultat null