it worked ok for me, although I did the patch manually.
this is my skin1/debug_templates.tpl
Code:
{* $Id: debug_templates.tpl,v 1.12.2.1 2004/08/02 10:00:33 max Exp $ *}
{assign_debug_info}
<SCRIPT type="text/javascript" language="JavaScript 1.2">
if (window.opener==null || window.opener.name!="console") {ldelim}
_smarty_console = window.open("","console","width=360,height=500,resizable,scrollbars=yes");
if(_smarty_console) {ldelim}
_smarty_console.document.open();
_smarty_console.document.write('<HTML><TITLE>{$lng.lbl_xcart_debugging_console|strip_tags}</TITLE><BODY bgcolor="#FFFBD3" nowrap>');
_smarty_console.document.write('<TABLE border="0" width="360" cellpadding="0" cellspacing="0" nowrap>');
_smarty_console.document.write('<TR bgcolor="#cccccc"><TD colspan="2" align="center">{$lng.lbl_included_templates_config_files|strip_tags}:</TD></TR></TABLE>');
_smarty_console.document.write('<TABLE border="0" width="100%" cellpadding="0" cellspacing="0" nowrap>');
{section name=templates loop=$_debug_tpls}
_smarty_console.document.write('<TR><TD colspan="2" nowrap><TT>{section name=indent loop=$_debug_tpls[templates].depth}{/section}[img]{$ImagesDir}/rarrow.gif[/img] ')
{if $_debug_tpls[templates].type eq "template" and $webmaster_mode eq "editor"}
_smarty_console.document.write('<A style="color:brown;text-decoration:none" hr'+'ef="{$catalogs.admin}/file_edit.php?{$XCARTSESSNAME}={$XCARTSESSID}&file=%2f{$_debug_tpls[templates].filename|escape:"url"}" target="_blank" onMouseOver="mainWnd.tmo(\'{$_debug_tpls[templates].filename}\')" onMouseOut="mainWnd.tmu(\'{$_debug_tpls[templates].filename}\')">{$_debug_tpls[templates].filename}</A>')
{else}
_smarty_console.document.write('<FONT color="{if $_debug_tpls[templates].type eq "template"}brown{else}black{/if}">{$_debug_tpls[templates].filename}</FONT>')
{/if}
{* _smarty_console.document.write('<FONT size="-1">({$_debug_tpls[templates].exec_time|string_format:"%.5f"}){if %templates.index% eq 0} (total){/if}</FONT>');*}
_smarty_console.document.write('</TT></TD></TR>');
{sectionelse}
_smarty_console.document.write('<TR bgcolor="#eeeeee"><TD colspan="2"><TT>no templates included</TT></TD></TR>');
{/section}
_smarty_console.document.write('</TABLE>');
_smarty_console.document.write('</BODY></HTML>');
_smarty_console.document.close();
_smarty_console.mainWnd = window
{rdelim}
{rdelim}
</SCRIPT>