Skip to content

Instantly share code, notes, and snippets.

@gtraxx
gtraxx / Debug smarty with firebug
Created August 27, 2013 11:35
Debug smarty with firebug
{* Smarty *}
{capture name='_smarty_debug' assign=debug_output}
<script type="text/javascript">
// <![CDATA[
var Smarty_debug = function Smarty_debug(collapsed){literal}{{/literal}
var group = (collapsed) ? console.groupCollapsed : console.group;
group("Smarty Debug"+ "{if isset($template_name)}{$template_name|debug_print_var nofilter}{else}Total Time {$execution_time|string_format:"%.5f"}{/if}");