Throw error messages

Author Message

James Ward

Wednesday 05 October 2005 8:42:48 am

We are currently developing a new extension for ezpublish but are having some problems with testing. Is it possible to throw a warning in php code to be handled by the ezdbugger so we can see the output in our browser?

Just a simple Warning:Hello World would be very helpful to us.

Nevermind I found it:
Using eZDebug::dumpVariable does the trick nicely.

working at www.wardnet.com
blogging at www.jamesward.ca

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 00:24:06
Script start
Timing: Jan 19 2025 00:24:06
Module start 'layout'
Timing: Jan 19 2025 00:24:06
Module start 'content'
Timing: Jan 19 2025 00:24:07
Module end 'content'
Timing: Jan 19 2025 00:24:07
Script end

Main resources:

Total runtime0.6778 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.0043 588.9297152.6094
Module start 'layout' 0.00430.0028 741.539139.4141
Module start 'content' 0.00710.6678 780.9531461.1953
Module end 'content' 0.67490.0028 1,242.14848.1875
Script end 0.6778  1,250.3359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4770160.0002
Check MTime0.00120.1779160.0001
Mysql Total
Database connection0.00070.097110.0007
Mysqli_queries0.629992.9226460.0137
Looping result0.00050.0699440.0000
Template Total0.648695.720.3243
Template load0.00270.402320.0014
Template processing0.645995.283020.3229
Template load and register function0.00010.019310.0001
states
state_id_array0.00090.127910.0009
state_identifier_array0.00070.102620.0003
Override
Cache load0.00150.226680.0002
Sytem overhead
Fetch class attribute can translate value0.00220.318210.0022
Fetch class attribute name0.00100.142520.0005
XML
Image XML parsing0.00060.087710.0006
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00170.2452160.0001
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
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
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 7
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs