tags:

views:

51

answers:

1

this is probably trivial, but i have a quite long sql query and echo Kohana::debug( $obj ); cuts off the tail of the query, replacing it with '...'.

how would i go about getting the full thing? (something nicer than var_dump if possible ;-))

+2  A: 

Try using the Profiler. For Kohana 3, put this in your template:

<div id="kohana-profiler">
<?php echo View::factory('profiler/stats') ?>
</div>

If you're using Kohana 2, just load the library in your controller:

$this->profiler = new Profiler;

The profiler dumps details of timing, post, cookies, sessions and database queries.

Andrew Clarke
nice one! didn't know that (obiously)
handsomeGun