How to change HTML of ez debug output ?

Author Message

Armen Zourabian

Monday 20 September 2004 5:32:50 am

Hi all!

When used in development setup (DebugSettings in ini file), ezPublish will output all the debug stuff at the end of the template. However it uses TABLE element with no id attribute, so the styling of this debug is difficult to impossible (html + table dont work as selector for some reason). I want to change the HTML code output of the debug. I found ezdebug.php in /lib/ezutils which outputs the debugging, however I am reluctant to changing ezPublish own code. Any other alternatives ?

Frederik Holljen

Monday 20 September 2004 6:28:37 am

Sorry, but the debug html is hardcoded into eZ publish itself since we really didn't expect that anyone ever wanted to style that :)
I suggest that you either:
- edit ezdebug.php directly and replace it when you upgrade. ezdebug.php isn't changed that frequently anyway.
or
- Patch ezdebug.php in some way that allows people to style the output. Send the patch to us and hope that we apply it (no promises though).

Armen Zourabian

Monday 20 September 2004 6:38:05 am

I could just do that (overlay the API in ezdebug.php, to write custom markup) :D
In that case, I will send the documentation and APIs..

Thanks for the reply, I already changed the ezdebug.php. Right now, all I did, was to add id=\"ezDebug\" to the root debug TABLE element. I ll take it from there.

There are several reasons to style the debug.

1. Different markup validates differently for different DOCTYPE declarations, hence a hardcoded TABLE may fail to validate, especially in XHTML documents with different default namespace (not 1999 XHTML)

2. Different authors see TABLEs differently and are not willing to use it for debugging output. I myself use a more elegant CSS driven design for debugging.

3. Debug styling is not important, but in my case where a lot of absolute positioned elements are used for my layout, ez debug actually pops up right beneath them, making it difficuly to debug my own layout (visually). So, I tried to move the ezDebug to the right top corner of the page, and unless I use a selector, CSS cant find it, so id=ezDebug helped.

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

Main resources:

Total runtime0.0161 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.0052 590.3906152.6250
Module start 'layout' 0.00520.0030 743.015639.4453
Module start 'content' 0.00830.0057 782.460989.3359
Module end 'content' 0.01400.0020 871.796934.3047
Script end 0.0160  906.1016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002415.0000140.0002
Check MTime0.00117.0710140.0001
Mysql Total
Database connection0.00084.968810.0008
Mysqli_queries0.002716.587030.0009
Looping result0.00000.111310.0000
Template Total0.001710.310.0017
Template load0.00085.255310.0008
Template processing0.00085.011910.0008
Override
Cache load0.00063.686210.0006
General
dbfile0.00138.239380.0002
String conversion0.00000.062440.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