IMPORTANT: This extensions has no more maintenance and it has been replaced with Debug Tools extension
- Adds Kint library for enhace variable debuging
- Adds SqlFormatter library for formatting sql statements.
The extension is licensed under AGPL-3.0.
- PHP v5.6+ / v7.x
- CiviCRM 4.x / 5.x
Once the libray is installed, printout functions are available for debugging your CiviCRM extensions
- q($var): prints out $var with sql format and syntax highlights
- qd($var): prints out $var with sql format and syntax highlights
- d($var): prints out $var in rich mode using kint
- s($var): prints out $var in plain mode using kint
- dd($var): calls d() and die()
- sd($var): calls s() and die()
- dr($var): calls d() and returns $var
- sr($var): calls s() and returns $var
Modifiers are a way to change Kint output without having to use a different function. Simply prefix your call to kint with a modifier to apply it:
- ! Expand all data in this dump automatically
- + Disable the depth limit in this dump
- - Attempt to clear any buffered output before this dump
- @ Return the output of this dump instead of echoing it
- ~ Use the text renderer for this dump
Example:
+Kint::dump($data); // Disabled depth limit
!d($data); // Expanded automatically
More examples here

