public static function breakpoint($message, $line = false, $file = false, $status = null)
    {
        if (!is_scalar($message)) {
            $message = print_r($message, 1);
        }
        $message = self::appendFL($message, $line, $file);
        if (php_sapi_name() === 'cli') {
            $message .= PHP_EOL;
        } else {
            $message = '<pre>'.htmlspecialchars($message, ENT_COMPAT, 'UTF-8').'</pre>';
        }
        self::out($message);
        self::stop($status);
    }
public static function breakpoint($message, $line = false, $file = false, $status = null)
    {
        if (!is_scalar($message)) {
            $message = print_r($message, 1);
        }
        $message = self::appendFL($message, $line, $file);
        if (php_sapi_name() === 'cli') {
            $message .= PHP_EOL;
        } else {
            $message = '<pre>'.htmlspecialchars($message, ENT_COMPAT, 'UTF-8').'</pre>';
        }
        self::out($message);
        self::stop($status);
    }
public static function breakpoint ( $ message , $ line = false , $ file = false , $ status = null ) { if ( ! is_scalar ( $ message ) ) { $ message = print_r ( $ message , 1 ) ; } $ message = self :: appendFL ( $ message , $ line , $ file ) ; if ( php_sapi_name ( ) === 'cli' ) { $ message .= PHP_EOL ; } else { $ message = '<pre>' . htmlspecialchars ( $ message , ENT_COMPAT , 'UTF-8' ) . '</pre>' ; } self :: out ( $ message ) ; self :: stop ( $ status ) ; }
Outputs debug breakpoint and terminates the current script

@param mixed $message
@param bool $line [optional]
@param bool $file [optional]
@param int $status [optional]
Outputs debug breakpoint and terminates the current script