Forums / Developer / Ezpublish and xdebug
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