JDatabaseQuery::dump

Creates a formatted dump of the query for debugging purposes.

Usage: echo $query->dump();