Debugging SugarCRM using Krumo
2013-04-08
Using the krumo library debugging sugarcrm becomes a lot easier.
- Download the latest version.
- Unzip it into
custom/include/krumo
. - Edit
krumo.ini
and adjust the url setting for the css. It should be somewhat likehttp://YOUR_HOST/SUGAR_PATH/custom/include/krumo
. - Include krumo in your code and use it (see below).
To use krumo in your code you have to include class.krumo.php
like this
require_once('custom/include/class.krumo.php');
Then in your detail or edit view for example you could use code like this:
if (function_exists('krumo')) krumo($this->bean);