[3.4beta1] how can I debug templates that get included when calling tool_bar?

Author Message

Chris Fullerton

Thursday 13 May 2004 6:53:57 am

I'm playing around with the new toolbar functionality, and have it "mostly" working, but I can't find a way to tell which templates are being included.

Inder 3.3.4, I'd change two settings in siteaccess/SITENAME/site.ini.append:

[TemplateSettings]
Debug=disabled
#Debug=enabled

[DebugSettings]
DebugOutput=disabled
#DebugOutput=enabled

and each included template would show up.

Now, when I add the following to override/site.ini.append:

[TemplateSettings]
Debug=enabled

I get HTML comments that show which templates get included, but it seems to be missing some of them - tool items are wrapped in a <div class=toolbar-item> and I can't find out where that's coming from!

Willie Seabrook

Friday 14 May 2004 11:28:38 pm

Hi Chris,

Have a look in debug.ini... there *might* be some more settings in there.

You could also do a recursive fgrep from the design folder downwards to find the file with div class=toolbar-item in it.

Sometimes with ezPublish I find manual ways on the command line that are far faster.

;-)

Regards,
Willie

Chris Fullerton

Saturday 15 May 2004 9:04:50 am

It turns out this code was coming from a php module, not a template. I filed a bug about it.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 03:38:12
Script start
Timing: Jan 31 2025 03:38:12
Module start 'layout'
Timing: Jan 31 2025 03:38:12
Module start 'content'
Timing: Jan 31 2025 03:38:12
Module end 'content'
Timing: Jan 31 2025 03:38:12
Script end

Main resources:

Total runtime0.0205 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0041 588.6250151.2734
Module start 'layout' 0.00410.0030 739.8984220.7656
Module start 'content' 0.00710.0120 960.6641997.7891
Module end 'content' 0.01910.0013 1,958.453129.9922
Script end 0.0204  1,988.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002311.1662140.0002
Check MTime0.00104.6861140.0001
Mysql Total
Database connection0.00073.515710.0007
Mysqli_queries0.00199.352330.0006
Looping result0.00000.038510.0000
Template Total0.00094.410.0009
Template load0.00073.607810.0007
Template processing0.00020.796210.0002
Override
Cache load0.00052.615810.0005
General
dbfile0.00125.730580.0001
String conversion0.00000.021040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs