Thursday 26 May 2011 3:13:27 pm - 7 replies

Introduction

As a novice eZPublish programmer 6 year ago my biggest problem was always trying to find my data.  Of course attribute(show) was invaluable... and at first I wrote a shell script to parse that data to make it readable and years later I wrote ezfire to make that data more accessible...  But, for much of the time I was cursing and thinking - to paraphrase Mojo Nixon - "Where the hell's my data."

» Read full blog post

Author Message

Gaetano Giunta

Friday 27 May 2011 12:58:59 am

Interesting and useful, thanks!

I think I'm gonna run with this code and integrate it into ggsysinfo...

Btw, did you ever try the latest version of the http://projects.ez.no/ezdebug_template_operator extension? It has a souped up version of the attribute() operator that is light years ahead of the original - plus another operator to list all the template variables defined in the current scope (ndt: not my code in the first place). These two together are imho priceless for the noob eZ developer.

Principal Consultant International Business
Member of the Community Project Board

Marko Žmak

Friday 27 May 2011 6:15:19 am

One extension I found to be usefull is show_variables:

It helped me a lot in detecting which variables are presen in attribute view template and also embed template (who would have tought of using $#ContentAttribute: namespace).

@gateano: Does the ezdebug_template_operator extension include the same functionality as show_variables?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Steven E. Bailey

Saturday 28 May 2011 7:57:39 am

Thanks, I hadn't looked at either of these projects.  I'm going to look at the code now.

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

Gaetano Giunta

Sunday 29 May 2011 11:31:08 am

@marko: yes - stole the idea and the code too ;-)

Principal Consultant International Business
Member of the Community Project Board

Marko Žmak

Sunday 29 May 2011 3:54:41 pm

"

@marko: yes - stole the idea and the code too ;-)

"

Great, so the ezdebug_template operator contains the enhanced version of the show_variable... I supose getDefinedvars is the equivalent...

Any chances of getting some docs about the operators?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Gaetano Giunta

Monday 30 May 2011 1:43:52 am

@Marko plentyful doc already, in the readme file once you install the extension ;-) (sorry for thread hijacking)

Principal Consultant International Business
Member of the Community Project Board

Nicolas Pastorino

Tuesday 31 May 2011 12:32:35 am

Hello guys !

Small "top-note" : the 

debug-log

operator has been around for some time now, not documented from day one but this is fixed today : 
http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Template-functions/Debugging/debug-log/(language)/eng-GB

Small 2 cents, sometimes useful,

Cheers ! 

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

You must be logged in to post messages in this topic!

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 29 2025 13:31:06
Script start
Timing: Jan 29 2025 13:31:06
Module start 'layout'
Timing: Jan 29 2025 13:31:06
Module start 'content'
Timing: Jan 29 2025 13:31:06
Module end 'content'
Timing: Jan 29 2025 13:31:06
Script end

Main resources:

Total runtime0.0174 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0040 588.1250151.2109
Module start 'layout' 0.00400.0030 739.335936.6563
Module start 'content' 0.00690.0087 775.9922102.9844
Module end 'content' 0.01560.0018 878.976641.9766
Script end 0.0174  920.9531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002614.9838140.0002
Check MTime0.00116.4826140.0001
Mysql Total
Database connection0.00031.847710.0003
Mysqli_queries0.001810.428230.0006
Looping result0.00000.154510.0000
Template Total0.00126.910.0012
Template load0.00105.552610.0010
Template processing0.00021.364910.0002
Override
Cache load0.00073.780110.0007
General
dbfile0.002614.751380.0003
String conversion0.00000.160040.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