src/Analysis/Debugger.php
public static function trace($options = [])
    {
        $defaults = [
            'trace' => [],
            'array' => false
        ];
        $options += $defaults;
        $back = [];
        $backtrace = static::backtrace($options);

        foreach ($backtrace as $trace) {
            $back[] = static::_traceToString($trace);
        }
        return $options['array'] ? $back : join("\n", $back);
    }
public static function trace($options = [])
    {
        $defaults = [
            'trace' => [],
            'array' => false
        ];
        $options += $defaults;
        $back = [];
        $backtrace = static::backtrace($options);

        foreach ($backtrace as $trace) {
            $back[] = static::_traceToString($trace);
        }
        return $options['array'] ? $back : join("\n", $back);
    }
public static function trace ( $ options = [ ] ) { $ defaults = [ 'trace' => [ ] , 'array' => false ] ; $ options += $ defaults ; $ back = [ ] ; $ backtrace = static :: backtrace ( $ options ) ; foreach ( $ backtrace as $ trace ) { $ back [ ] = static :: _traceToString ( $ trace ) ; } return $ options [ 'array' ] ? $ back : join ( "\n" , $ back ) ; }
Gets a backtrace string or string array based on the supplied options.

@param  array $options Format for outputting stack trace. Available options are:
- `'start'`   _integer_: The depth to start with.
- `'depth'`   _integer_: The maximum depth of the trace.
- `'message'` _string_ : Either `null` for default message or a string.
- `'trace'`   _array_: A trace to use instead of generating one.
- `'array'`   _array_: Returns an string array instead of a plain string.
@return array          The formatted backtrace.
Gets a backtrace string or string array based on the supplied options .