Debugging with Krumo

Some websites do not require advanced debugging with an IDE. If you just want to know the value of a variable without having to step through a site, Krumo may be for you.

The easiest way I have found to add the Krumo library is to use the auto_prepend_file for php. The auto_prepend_file declaration can be inserted into either the php.ini (for your entire web server), the httpd.conf file if you want it for just one site, or in your .htaccess file for a particular sub-directory. This will allow you to prepend a php script before any of your scripts run.

Create a new file on your web server called prepend.php.


For php.ini, use:

auto_prepend_file = “auto_prepend.php"

For .htaccess or httpd.conf, use:

php_value auto_prepend_file auto_prepend.php


The Core Team
Editorial Staff Members at 'corePHP'
Editorial staff for the Core Technology Blog for 'corePHP' - news, views insights and advice for e-commerce, marketing technology , web design and development.