// Enabling debugging Kohana::$environment = Kohana::DEVELOPMENT // Displaying errors and exceptions ini_set('display_errors', 1); error_reporting(E_ALL); // Enabling debugging toolbar DebugToolbar::init();
// Starting profiler Profiler::start('my-code'); // Code to be profiled // ... // Stopping profiler Profiler::stop('my-code'); // Displaying profiler results echo View::factory('profiler/stats');The package library for Kohana Debug is the `kohana/debug-toolbar` package.