debugging templates

Author Message

Dave Dykshoorn

Thursday 31 July 2003 9:50:56 am

I am having a tough time debugging templates due to the fact that they incorporate a sort of eZp scripting / php hybrid that standard php debuggers simply won't do anything with.

Does anyone have any tips? I'm also finding it tough to debug modules due to function_definitions.php and module.php. Do I have to code a bunch of "fake input" php scripts to simulate what my template would send to the module so that I can run it through a decent php debugger?

I would assume that the eZp have some sort of trick or tool to debugging new modules and corresponding templates other than trial and error.

I am currently using NuSphere's phpEd to do my php work.

Any help, tips, suggestions, would be appreciated.

Thanks

Dave

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 18 2025 19:19:02
Script start
Timing: Jan 18 2025 19:19:02
Module start 'layout'
Timing: Jan 18 2025 19:19:02
Module start 'content'
Timing: Jan 18 2025 19:19:02
Module end 'content'
Timing: Jan 18 2025 19:19:02
Script end

Main resources:

Total runtime0.6773 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0081 589.0234152.6250
Module start 'layout' 0.00810.0032 741.648439.4297
Module start 'content' 0.01130.6646 781.0781399.0859
Module end 'content' 0.67590.0014 1,180.16418.1875
Script end 0.6773  1,188.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4902160.0002
Check MTime0.00130.1929160.0001
Mysql Total
Database connection0.00100.146010.0010
Mysqli_queries0.636093.9036460.0138
Looping result0.00040.0606440.0000
Template Total0.636093.920.3180
Template load0.00220.321120.0011
Template processing0.633893.571320.3169
Template load and register function0.00010.017210.0001
states
state_id_array0.00150.225910.0015
state_identifier_array0.00100.151320.0005
Override
Cache load0.00180.2618100.0002
Sytem overhead
Fetch class attribute can translate value0.00090.128310.0009
Fetch class attribute name0.00130.198410.0013
XML
Image XML parsing0.00010.016110.0001
class_abstraction
Instantiating content class attribute0.00000.001210.0000
General
dbfile0.00070.1076100.0001
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 4
 Number of unique templates used: 4

Time used to render debug report: 0.0002 secs