List of available variables, the debugger

Author Message

Muu Sle

Monday 19 June 2006 5:18:37 am

Hi,

This suggestion is based on this thread:
http://ez.no/community/forum/setup_design/ez_template_engine_debug

The attribute operator is great for debugging, it really makes the job a lot easier. But there are occasions where you don't know the actual name of the variable, especially for first timers dealing with collector forms and customizing xml tags.

To complete the debug, I really think it would be a grate addition if the debugger (popup/inline) could display a list of available variables, variables passed to the template(s).
I don't mean the actual content of the variable, just the names.

This functionality would be related to the get_defined_vars http://be2.php.net/manual/en/function.get-defined-vars.php.

Hopes this makes sense.

Thanks,

. m

. muusle

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 11:05:48
Script start
Timing: Jan 18 2025 11:05:48
Module start 'layout'
Timing: Jan 18 2025 11:05:48
Module start 'content'
Timing: Jan 18 2025 11:05:49
Module end 'content'
Timing: Jan 18 2025 11:05:49
Script end

Main resources:

Total runtime0.4299 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.0064 589.1797152.6406
Module start 'layout' 0.00640.0031 741.820339.4766
Module start 'content' 0.00950.4191 781.2969463.3828
Module end 'content' 0.42860.0013 1,244.67978.2813
Script end 0.4299  1,252.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.7724160.0002
Check MTime0.00140.3340160.0001
Mysql Total
Database connection0.00080.180110.0008
Mysqli_queries0.386189.8068460.0084
Looping result0.00060.1322440.0000
Template Total0.398392.620.1991
Template load0.00200.455420.0010
Template processing0.396392.187620.1982
Template load and register function0.00010.027710.0001
states
state_id_array0.00090.214710.0009
state_identifier_array0.00110.261520.0006
Override
Cache load0.00160.3653140.0001
Sytem overhead
Fetch class attribute can translate value0.00070.173510.0007
Fetch class attribute name0.00070.157120.0003
XML
Image XML parsing0.00060.146810.0006
class_abstraction
Instantiating content class attribute0.00000.000920.0000
General
dbfile0.00080.1909160.0001
String conversion0.00000.007040.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs