PHPSQLParser\positions\PositionCalculator::printPos PHP Method

printPos() protected method

protected printPos ( $text, $sql, $charPos, $key, $parsed, $backtracking )
    protected function printPos($text, $sql, $charPos, $key, $parsed, $backtracking)
    {
        if (!isset($_SERVER['DEBUG'])) {
            return;
        }
        $spaces = "";
        $caller = debug_backtrace();
        $i = 1;
        while ($caller[$i]['function'] === 'lookForBaseExpression') {
            $spaces .= "   ";
            $i++;
        }
        $holdem = substr($sql, 0, $charPos) . "^" . substr($sql, $charPos);
        echo $spaces . $text . " key:" . $key . "  parsed:" . $parsed . " back:" . serialize($backtracking) . " " . $holdem . "\n";
    }