Ezpublish and xdebug

Author Message

Paul Forsyth

Tuesday 03 February 2004 2:46:12 am

I want to use xdebug (1.3.0) with ezpublish for php (4.3.4) debugging but i can't figure how to activate it for php errors. I can call xdebug functions and see results, such as the xdebug lines present, but commented out, in index.php. But for php errors that stop the process from completing i only seem to get a white screen.

Im using the default settings for xdebug, so xdebug.default_enable is on. From the documentation at xdebug.org this appears to be all i need for it to catch normal errors.

I also filed this bug about a problem with the object relation list:

http://ez.no/community/bug_reports/ez_publish_and_xdebug_problem

Can anyone advise me here?

Thanks!

paul

Derick Rethans

Friday 20 February 2004 7:48:39 am

Hello,

eZ Publish uses a user-defined error handler in PHP. Unfortunately this user-defined error handler is used before PHP calls the internal error handler (which is replaced by Xdebug by a new one). Because of this the Xdebug error handler is never called at all.

As a trick you can disable eZ from setting this error handler by commenting out the call to set_error_handler in lib/ezutils/classes/ezdebug.php

regards,
Derick

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

Main resources:

Total runtime0.8694 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.0078 589.0547152.6094
Module start 'layout' 0.00780.0034 741.664139.4141
Module start 'content' 0.01120.8567 781.0781494.4141
Module end 'content' 0.86790.0015 1,275.49228.3438
Script end 0.8694  1,283.8359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3727160.0002
Check MTime0.00130.1467160.0001
Mysql Total
Database connection0.00140.163010.0014
Mysqli_queries0.825694.9584540.0153
Looping result0.00050.0606520.0000
Template Total0.833495.920.4167
Template load0.00200.227920.0010
Template processing0.831495.627720.4157
Template load and register function0.00020.021910.0002
states
state_id_array0.00160.187710.0016
state_identifier_array0.00150.167820.0007
Override
Cache load0.00160.1839170.0001
Sytem overhead
Fetch class attribute can translate value0.00110.125720.0005
Fetch class attribute name0.00140.162230.0005
XML
Image XML parsing0.00060.074020.0003
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00090.1063160.0001
String conversion0.00000.001440.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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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/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