private static function getDebugFile()
    {
        $trace = \debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);

        foreach (\array_reverse($trace) as $stackFrame) {
            if (!self::isDebugCall($stackFrame)) {
                continue;
            }

            if (\preg_match('/eval\(/', $stackFrame['file'])) {
                \preg_match_all('/([^\(]+)\((\d+)/', $stackFrame['file'], $matches);

                return $matches[1][0];
            }

            return $stackFrame['file'];
        }
    }
private static function getDebugFile()
    {
        $trace = \debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);

        foreach (\array_reverse($trace) as $stackFrame) {
            if (!self::isDebugCall($stackFrame)) {
                continue;
            }

            if (\preg_match('/eval\(/', $stackFrame['file'])) {
                \preg_match_all('/([^\(]+)\((\d+)/', $stackFrame['file'], $matches);

                return $matches[1][0];
            }

            return $stackFrame['file'];
        }
    }
private static function getDebugFile ( ) { $ trace = \ debug_backtrace ( DEBUG_BACKTRACE_IGNORE_ARGS ) ; foreach ( \ array_reverse ( $ trace ) as $ stackFrame ) { if ( ! self :: isDebugCall ( $ stackFrame ) ) { continue ; } if ( \ preg_match ( '/eval\(/' , $ stackFrame [ 'file' ] ) ) { \ preg_match_all ( '/([^\(]+)\((\d+)/' , $ stackFrame [ 'file' ] , $ matches ) ; return $ matches [ 1 ] [ 0 ] ; } return $ stackFrame [ 'file' ] ; } }
Search the stack trace for a file in which the user called Psy\debug.

@return string|null
Search the stack trace for a file in which the user called Psy \ debug .