Make dump() available when devMode is disabled Is there a way to make the dump() function available in my plugin templates when devMode is disabled?
Add this to your plugin/controller:

if (!craft()-&gt;config-&gt;get('devMode'))
{
    craft()-&gt;templates-&gt;getTwig()-&gt;addExtension(new \Twig_Extension_Debug());
}


Thanks to the all-knowing Brandon Kelly, who posted the solution on Slack.