src/Debugger/Debugger.php
public static function dump($var, bool $return = false)
    {
        if ($return) {
            \ob_start();
            Dumper::dump($var, [
                Dumper::DEPTH => self::$maxDepth,
                Dumper::TRUNCATE => self::$maxLength,
            ]);

            return \ob_get_clean();
        }

        if (!self::isProductionMode()) {
            Dumper::dump($var, [
                Dumper::DEPTH => self::$maxDepth,
                Dumper::TRUNCATE => self::$maxLength,
                Dumper::LOCATION => self::$showLocation,
            ]);
        }

        return $var;
    }
public static function dump($var, bool $return = false)
    {
        if ($return) {
            \ob_start();
            Dumper::dump($var, [
                Dumper::DEPTH => self::$maxDepth,
                Dumper::TRUNCATE => self::$maxLength,
            ]);

            return \ob_get_clean();
        }

        if (!self::isProductionMode()) {
            Dumper::dump($var, [
                Dumper::DEPTH => self::$maxDepth,
                Dumper::TRUNCATE => self::$maxLength,
                Dumper::LOCATION => self::$showLocation,
            ]);
        }

        return $var;
    }
public static function dump ( $ var , bool $ return = false ) { if ( $ return ) { \ ob_start ( ) ; Dumper :: dump ( $ var , [ Dumper :: DEPTH => self :: $ maxDepth , Dumper :: TRUNCATE => self :: $ maxLength , ] ) ; return \ ob_get_clean ( ) ; } if ( ! self :: isProductionMode ( ) ) { Dumper :: dump ( $ var , [ Dumper :: DEPTH => self :: $ maxDepth , Dumper :: TRUNCATE => self :: $ maxLength , Dumper :: LOCATION => self :: $ showLocation , ] ) ; } return $ var ; }
Dumps information about a variable in readable format.

@tracySkipLocation

@param mixed $var    variable to dump
@param bool  $return return output instead of printing it? (bypasses $productionMode)

@return mixed  variable itself or dump
Dumps information about a variable in readable format .