PHP Класс lithium\analysis\Debugger

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

Защищенные свойства (Protected)

Свойство Тип Описание
$_closureCache array Used for temporary closure caching.

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

Метод Описание
export ( mixed $var ) : string Returns a parseable string representation of a variable.
trace ( array $options = [] ) : string | array | null Outputs a stack trace based on the supplied options.

Защищенные методы

Метод Описание
_closureDef ( array $frame, callable | string $function ) : string Helper method for caching closure function references to help the process of building the stack trace.
_definition ( mixed $reference, integer $callLine ) : mixed Locates original location of closures.

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

_closureDef() защищенный статический Метод

Helper method for caching closure function references to help the process of building the stack trace.
protected static _closureDef ( array $frame, callable | string $function ) : string
$frame array Backtrace information.
$function callable | string The method related to $frame information.
Результат string Returns either the cached or the fetched closure function reference while writing its reference to the cache array `$_closureCache`.

_definition() защищенный статический Метод

Locates original location of closures.
protected static _definition ( mixed $reference, integer $callLine ) : mixed
$reference mixed File or class name to inspect.
$callLine integer Line number of class reference.
Результат mixed Returns the line number where the method called is defined.

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

Returns a parseable string representation of a variable.
public static export ( mixed $var ) : string
$var mixed The variable to export.
Результат string The exported contents.

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

Outputs a stack trace based on the supplied options.
public static trace ( array $options = [] ) : string | array | null
$options array Format for outputting stack trace. Available options are: - `'args'`: A boolean indicating if arguments should be included. - `'depth'`: The maximum depth of the trace. - `'format'`: Either `null`, `'points'` or `'array'`. - `'includeScope'`: A boolean indicating if items within scope should be included. - `'scope'`: Scope for items to include. - `'start'`: The depth to start with. - `'trace'`: A trace to use instead of generating one.
Результат string | array | null Stack trace formatted according to `'format'` option.

Описание свойств

$_closureCache защищенное статическое свойство

Used for temporary closure caching.
См. также: lithium\analysis\Debugger::_closureDef()
protected static array $_closureCache
Результат array