More specific debug information at errors

Author Message

Tore Skobba

Wednesday 17 December 2003 2:42:23 am

Hi

When debuging I often face the problem of discovering where the error is? For instace right now I am getting this error:

Error: eZTemplate Dec 17 2003 11:33:24
Cannot retrieve attribute of a boolean

However, actually discovering the whereabout of this error can be quite time consuming (which template and where in the template!). So why not in debug mode do the following:

1: Write out the template name and the line nr. generating the error.
2: Write out the code probably generating the error (include perhapes the line before and after).

I have noticed that sometimes 1 is done, but sometimes not.

Cheers
Tore

Gunnstein Lye

Wednesday 17 December 2003 9:18:21 am

This is difficult, because the templates are compiled and cached. But more helpful debug info is planned.

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

Main resources:

Total runtime0.6939 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 589.1797152.6406
Module start 'layout' 0.00520.0031 741.820339.4766
Module start 'content' 0.00830.6841 781.2969494.2734
Module end 'content' 0.69230.0015 1,275.57038.1250
Script end 0.6938  1,283.6953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4563160.0002
Check MTime0.00120.1773160.0001
Mysql Total
Database connection0.00060.084310.0006
Mysqli_queries0.651393.8681540.0121
Looping result0.00060.0841520.0000
Template Total0.665896.020.3329
Template load0.00220.312020.0011
Template processing0.663695.644620.3318
Template load and register function0.00020.022310.0002
states
state_id_array0.00130.193610.0013
state_identifier_array0.00110.152920.0005
Override
Cache load0.00170.2414160.0001
Sytem overhead
Fetch class attribute can translate value0.00050.068320.0002
Fetch class attribute name0.00080.120830.0003
XML
Image XML parsing0.00090.125420.0004
class_abstraction
Instantiating content class attribute0.00000.001130.0000
General
dbfile0.00070.1043160.0000
String conversion0.00000.001040.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs