Skip to content

Instantly share code, notes, and snippets.

@biakaveron
Created May 19, 2011 07:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biakaveron/980356 to your computer and use it in GitHub Desktop.
Save biakaveron/980356 to your computer and use it in GitHub Desktop.
class Debug extends Kohana_Debug {
public static function vars()
{
if (func_num_args() === 0)
return;
$backtrace = debug_backtrace();
$path = $backtrace[0]['file'];
$filename = Debug::path($path);
$line = $backtrace[0]['line'];
$header = '<b>'.$filename.':'.$line.'</b>';
$body = call_user_func_array('Kohana_Debug::vars', func_get_args());
return $header.$body;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment