3 Kohana includes several powerful tools to help you debug your application.
5 The most basic of these is [Kohana::debug]. This simple method will display any number of variables, similar to [var_export](http://php.net/var_export) or [print_r](http://php.net/print_r), but using HTML for extra formatting.
7 // Display a dump of the $foo and $bar variables
8 echo Kohana::debug($foo, $bar);
10 Kohana also provides a method to show the source code of a particular file using [Kohana::debug_source].
12 // Display this line of source code
13 echo Kohana::debug_source(__FILE__, __LINE__);
15 If you want to display information about your application files without exposing the installation directory, you can use [Kohana::debug_path]:
17 // Displays "APPPATH/cache" rather than the real path
18 echo Kohana::debug_path(APPPATH.'cache');