The following bug has been RESOLVED.
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000187
======================================================================
Reporter: Tindu
Handler: derick
======================================================================
Project: Xdebug
Bug ID: 187
Category: Usage problems
Reproducibility: always
Severity: minor
Priority: normal
Status: resolved
Operating System: Windows XP
PHP Version: 5.1.2
Xdebug Version: 2.0.0rc1-dev
Resolution: fixed
======================================================================
Date Submitted: 2006-06-07 11:04 CEST
Last Modified: 2006-08-19 14:21 CEST
======================================================================
Summary: stderr does not make XDebug report fatal errors
Description:
I want to get XDebug to report back fatal errors to me so I can show the
line number or call stack to the user.
Script:
<?
$bogus->call();
?>
Log:
Log opened at 2006-06-07 08:54:55
-> <init fileuri="file:///c%3A%5Crtw83%5CTrain%5Ctest.php" language="PHP"
protocol_version="1.0" appid="3624" idekey="session_name"><engine
version="2.0.0rc1-dev"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick
Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright
(c) 2002-2006 by Derick Rethans]]></copyright></init>
<- breakpoint_set -i 2 -t line -f file:///c:/rtw83/Train/test.php -n 5
-> <response command="breakpoint_set" transaction_id="2"
id="36240001"></response>
<- stderr -i 1 -c 2
-> <response command="stderr" transaction_id="1" success="0"></response>
<- feature_set -i 1 -n max_depth -v 10
-> <response command="feature_set" transaction_id="1" feature="max_depth"
success="1"></response>
<- run -i 1
-> <response command="run" transaction_id="1" status="stopped"
reason="ok"></response>
Log closed at 2006-06-07 08:54:55
======================================================================
----------------------------------------------------------------------
derick - 2006-08-19 14:21 CEST
----------------------------------------------------------------------
stderr is not supposed to work in the way you want this. I just committed a
change to CVS that allows you to set an 'exception' breakpoint for the
various PHP error types. Examples of this are:
breakpoint_set -t exception -x "Fatal error" -s enabled -i 28
breakpoint_set -t exception -x Notice -s enabled -i 29
This feature should address what you were looking for.
Bug History
Date Modified Username Field Change
======================================================================
2006-06-07 11:04Tindu New Bug
2006-06-07 11:04Tindu Bug Monitored: Tindu
2006-08-19 14:21derick Bugnote Added: 0000437
2006-08-19 14:21derick Assigned To => derick
2006-08-19 14:21derick Resolution open => fixed
2006-08-19 14:21derick Status new => resolved
======================================================================
Received on Sat Aug 19 2006 - 14:21:04 BST
This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST