Debug toolbar

Debug Toolbar is a module for Kohana that simplifies debugging applications written in this PHP framework. Thanks to various statistical and debugging information, the development process becomes easier and more pleasant for the programmer.
Under the cut, a brief installation guide, a description of the features and links to additional information.
Installation
It is assumed that Kohana is already installed.
We go to the official page of the Kohana Debug Toolbar and go to the " files " section . Download the archive with the latest version in your favorite format.
Unpack the archive. Only one debug_toolbar folder will appear. Transfer it with all its contents to the Kohana modules folder. It is usually called modules.
We find the images folder in debug_toolbar and transfer the contents of this folder to some folder available on the web.
Open the file modules / debug_toolbar / config / debug_toolbar.php. We write the path to the transferred content of the images folder relative to the site domain (
$config['icon_path'] = 'path/to/images';). And also check that the option is auto_renderset toTRUEotherwise, you will have to write to display the toolbar on the page echo DebugToolbar::render();. Open the Kohana configuration file (application / config / config.php). Turn on the hooks (
$config['enable_hooks'] = TRUE;) and add the module ( $config['modules'] = array(MODPATH.'debug_toolbar');). Done! If everything is done correctly, then when you enter any page of the site, the Debug Toolbar will be displayed at the top.
Opportunities

To the left in the toolbar is the Kohana logo and the used version of the framework.
Next are the runtime and the amount of RAM used up. When you click on either of these two items, a summary table of memory and time appears for each stage of the system (kernel loading, initialization, etc.).
The next item is sql queries. When clicked, it displays a table of all executed database queries with time and the number of returned results.
The penultimate item on our list is “variables and configuration”. In general, everything is clear from the name: it allows you to see the variables get, post, cookie, session and the entire configuration of Kohana.
Well, the last item is log entries. Displays all log entries that were made at run time.
Ah, yes, there are two more buttons from the very right edge: the first moves the toolbar to the other edge of the browser window, and the other hides it from the screen.
You can test the toolbar yourself on the demo page .
References
- Download
- Project page on the Kohana website
- Project wiki on the Kohana website
- Project page on the author’s website
- Demo page