SQL query logging for debugging

how to view the actual query instead of t0, $1, $2 etc?