Joomla! Extensions Directory


Miscellaneous, Development

jdbg is a nifty debugging tool that allows you to print in various formats and also enables you to set condition for the printing. It also has an option of dumping values to a predefined log file which comes useful in case you must do what you shouldn't normally do, namely debug on live site.

  • Get this

To illustrate the use with some examples.

Ex 1. jdbg::p($var);
simply prints $var with the printer assigned in jdbg plugin configuration

Ex 2. jdbg::p($var, $varCond, "re:[a-z]+");
prints $var with the printer assigned in jdbg plugin configuration only if $varCond matches the given regular expression of [a-z]+

Ex 3. jdbg::p($var, $varCond, jdbg::IS_EMPTY);
prints $var with the printer assigned in jdbg plugin configuration only if $varCond is empty (defined as not isset or != '')

Ex 4. jdbg::pf($var, 'area');
simply prints $var overriding the printer assigned in jdbg plugin configuration and uses instead textarea

You are able to print in the following formats:
- krumo (
- kint (
- pre-formatted
- within a textarea
- using var_dump (good enough if you have xdebug in place)
- dump to log file

In the plugin configuration you would be able to control:
- krumo skin (5 predefined choices are available)
- if the print of jdbg should be done regardless of the global Joomla debug mode is on or not
- the default printing format for jdbg according to the options above
- if the print should be on site, admin or both
- if printing option is to file the location and name of the file, and whether the log file should be reset at each page load and if timestamp should be appended to log file prior to dumping value (including delta time measured from the first time jdbg was called in milliseconds)

Conditions for print are set according to the following:
- if given parameter value equivalence with given test value
- if given parameter value match with a given regular expression
- if given parameter is empty or not empty (2 constants defined by jdbg, thus thus jdbg::ISEMPTY or jdbg::ISNOTEMPTY)

In additon you would be able to control the execution flow and call exit after print by using the jdbg::pe version.

You can override the plugin configurations by making the call to jdbg::pf instead with the following function-signature:

jdbg::pf($val, $mode = 'pre', $varval = null, $varcond = null, $exitmode = jdbg::EXITDONT)

Calling krumo
dump is the default function applied. If any of the functions (other than dump are to be applied then do use "krumo krumo_function").
Available functions are documented here.

There is really not that much more to say about jdbg, but as you probably can see it can make your debugging much easier

Any feedback, bug report or support request is welcome.

At the download site 2 different versions J1.5 compatible (not maintained anymore) and J2.5+ compatible versions are available.



Free | Performance |
55 reviews
jbetolo primarily helps you with your front-end optimization, combining/compressing/minimizing/caching js and css. Advice: don't expect jbetolo to work out of the box, although it will do excellent job in most cases. jbetolo helps you tune YOUR site, thus it needs to be adjusted to YOUR specific setup, and the very reason we provide you so many useful options where each is explained within jbetolo when you hover the specific parameters. Having said that, I always welcome you to contact me and I will try my best to provide advice or if necessary direct assistance. jbetolo provides the following features in detail: 1. merging js and css 2. compressing js, css and fonts 3. minimizing js, css and html 4. serve the generated files with correct http header 5. off-loading to your CDN server, multiple CDNs supported for various file types 6. static content caching 7. exclude jbetolo processing based on browser, browser version, mobile device, certain components, url params 8. embed selected resources as data URI in your merged css file 9. solve js and css conflicts and dependency issues, by allowing you to sequence the loading 10. remove unwanted js and css files from the page 11. add js and css files that aren't included or if you want to replace removed ones 12. merging option to indicate which files that should be excluded or included from the merging process 13. move inline js scripts to either header, bottom of the page or leave it as it is 14. move merged js file, as well as other non-merged js files and inline js code to the bottom of page or leave it within the header Are those features not enough please don't hesitate to head over to our repo and submit an enhancement request and we will make sure to consider it. Notice: The last Joomla! 1.5 compatible version is 2.2.14 and will be supported only to fix bugs and no new features will be introduced.


Date added:
Nov 18 2014
GPLv2 or later
Free download
Uses updater:
Download DemoNot available SupportNot available Documentation
  • Overall
    Not rated
  • Functionality

    Not rated
  • Ease of use

    Not rated
  • Documentation

    Not rated
  • Support

    Not rated