View Issue Details

IDProjectCategoryView StatusLast Update
0000561XdebugUsage problems (Wrong Results)public2010-04-13 19:41
ReporterxformerAssigned Toderick 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionno change required 
Product Version2.0.0dev 
Target VersionFixed in Version 
Summary0000561: trigger_error terminates debugger despite in try-catch-block
DescriptionHello, I consistently have the following error when I use xdebug:

xdebug terminates when I throw a new exception with "trigger_error" despite the fact that the exception occurs in a try-catch-block. If I use "throw exception" it is handled correctly.

Here is the code:

<?php
class Test {
    public function __construct() {
        
    }
    
    public function boom() {
        //throw new exception('Boom'); //this does NOT cause xdebug to terminate
        trigger_error('Trigger_error boom', E_USER_ERROR); // but this
    }
}

$y = new Test();
try {
    $y->boom();
}
catch (Exception $e) {
    print($e->getMessage());
}

?>
Additional InformationOS: Windows 7 Home Premium with all patches applied
PHP: V5.2.13 (this is not shown in the PHP version list)
xdebug: 2.0.5 for 5.2 thread safe VC6

Here is the log:
Log opened at 2010-04-12 18:29:16
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///D:/Users/MyUser/Documents/Eclipse/Workspace/TheApp/Basis/xdbg.php" language="PHP" protocol_version="1.0" appid="4552" session="12710969555508" idekey="ECLIPSE_DBGP"><engine version="2.0.5"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2009 by Derick Rethans]]></copyright></init>

<- feature_set -i 148 -n show_hidden -v 1
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="148" feature="show_hidden" success="1"></response>

<- feature_set -i 149 -n max_depth -v 3
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="149" feature="max_depth" success="1"></response>

<- feature_set -i 150 -n max_children -v 31
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="150" feature="max_children" success="1"></response>

<- feature_get -i 151 -n encoding
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="151" feature_name="encoding" supported="1"><![CDATA[iso-8859-1]]></response>

<- feature_get -i 152 -n supports_async
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="152" feature_name="supports_async" supported="1"><![CDATA[0]]></response>

<- stdout -i 153 -c 1
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stdout" transaction_id="153" success="1"></response>

<- stderr -i 154 -c 1
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stderr" transaction_id="154" success="0"></response>

<- step_into -i 155
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="155" status="break" reason="ok"><xdebug:message filename="file:///D:/Users/MyUser/Documents/Eclipse/Workspace/TheApp/Basis/xdbg.php" lineno="2"></xdebug:message></response>

<- stack_get -i 156
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="156"><stack where="{main}" level="0" type="file" filename="file:///D:/Users/MyUser/Documents/Eclipse/Workspace/TheApp/Basis/xdbg.php" lineno="2"></stack></response>

<- context_get -i 157 -c 1
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="context_get" transaction_id="157" context="1"><property name="_COOKIE" fullname="$_COOKIE" address="29069064" type="array" children="0" numchildren="0"></property><property name="_ENV" fullname="$_ENV" address="29090512" type="array" children="0" numchildren="0"></property><property name="_FILES" fullname="$_FILES" address="29069824" type="array" children="0" numchildren="0"></property><property name="_GET" fullname="$_GET" address="29068992" type="array" children="0" numchildren="0"></property><property name="_POST" fullname="$_POST" address="29069552" type="array" children="0" numchildren="0"></property><property name="_REQUEST" fullname="$_REQUEST" address="29090408" type="array" children="0" numchildren="0"></property><property name="_SERVER" fullname="$_SERVER" address="29070200" type="array" children="1" numchildren="50" page="0" pagesize="31"><property name="ALLUSERSPROFILE" fullname="$_SERVER['ALLUSERSPROFILE']" address="29070464" type="string" size="14" encoding="base64"><![CDATA[QzpcUHJvZ3JhbURhdGE=]]></property><property name="APPDATA" fullname="$_SERVER['APPDATA']" address="29070440" type="string" size="30" encoding="base64"><![CDATA[QzpcVXNlcnNcRnJhbmtcQXBwRGF0YVxSb2FtaW5n]]></property><property name="CLASSPATH" fullname="$_SERVER['CLASSPATH']" address="29070744" type="string" size="47" encoding="base64"><![CDATA[LjtDOlxQcm9ncmFtIEZpbGVzXEphdmFcanJlNlxsaWJcZXh0XFFUSmF2YS56aXA=]]></property><property name="CommonProgramFiles" fullname="$_SERVER['CommonProgramFiles']" address="29070720" type="string" size="29" encoding="base64"><![CDATA[QzpcUHJvZ3JhbSBGaWxlc1xDb21tb24gRmlsZXM=]]></property><property name="COMPUTERNAME" fullname="$_SERVER['COMPUTERNAME']" address="29070984" type="string" size="6" encoding="base64"><![CDATA[SkFKQUpB]]></property><property name="ComSpec" fullname="$_SERVER['ComSpec']" address="29070960" type="string" size="27" encoding="base64"><![CDATA[QzpcV2luZG93c1xzeXN0ZW0zMlxjbWQuZXhl]]></property><property name="DBGP_COOKIE" fullname="$_SERVER['DBGP_COOKIE']" address="29071224" type="string" size="14" encoding="base64"><![CDATA[MTI3MTA5Njk1NTU1MDg=]]></property><property name="DBGP_IDEKEY" fullname="$_SERVER['DBGP_IDEKEY']" address="29071328" type="string" size="12" encoding="base64"><![CDATA[RUNMSVBTRV9EQkdQ]]></property><property name="DFSTRACINGON" fullname="$_SERVER['DFSTRACINGON']" address="29071408" type="string" size="5" encoding="base64"><![CDATA[RkFMU0U=]]></property><property name="FP_NO_HOST_CHECK" fullname="$_SERVER['FP_NO_HOST_CHECK']" address="29071304" type="string" size="2" encoding="base64"><![CDATA[Tk8=]]></property><property name="HOMEDRIVE" fullname="$_SERVER['HOMEDRIVE']" address="29071680" type="string" size="2" encoding="base64"><![CDATA[Qzo=]]></property><property name="HOMEPATH" fullname="$_SERVER['HOMEPATH']" address="29071784" type="string" size="12" encoding="base64"><![CDATA[XFVzZXJzXEZyYW5r]]></property><property name="LD_LIBRARY_PATH" fullname="$_SERVER['LD_LIBRARY_PATH']" address="29071864" type="string" size="20" encoding="base64"><![CDATA[QzpcUHJvZ3JhbSBGaWxlc1xQSFA=]]></property><property name="LOCALAPPDATA" fullname="$_SERVER['LOCALAPPDATA']" address="29071952" type="string" size="28" encoding="base64"><![CDATA[QzpcVXNlcnNcRnJhbmtcQXBwRGF0YVxMb2NhbA==]]></property><property name="LOGONSERVER" fullname="$_SERVER['LOGONSERVER']" address="29072056" type="string" size="8" encoding="base64"><![CDATA[XFxKQUpBSkE=]]></property><property name="NUMBER_OF_PROCESSORS" fullname="$_SERVER['NUMBER_OF_PROCESSORS']" address="29072032" type="string" size="1" encoding="base64"><![CDATA[Mg==]]></property><property name="OS" fullname="$_SERVER['OS']" address="29072288" type="string" size="10" encoding="base64"><![CDATA[V2luZG93c19OVA==]]></property><property name="Path" fullname="$_SERVER['Path']" address="29072928" type="string" size="423" encoding="base64"><![CDATA[QzovUHJvZ3JhbSBGaWxlcy9KYXZhL2pyZTYvYmluL2NsaWVudDtDOi9Qcm9ncmFtIEZpbGVzL0phdmEvanJlNi9iaW47QzpcUHJvZ3JhbSBGaWxlc1xQSFBcO0M6XFByb2dyYW0gRmlsZXNcQ29tbW9uIEZpbGVzXE1pY3Jvc29mdCBTaGFyZWRcV2luZG93cyBMaXZlO0M6XFdpbmRvd3Ncc3lzdGVtMzI7QzpcV2luZG93cztDOlxXaW5kb3dzXFN5c3RlbTMyXFdiZW07QzpcUFJPR1JBfjFcQ09NTU9OfjFcVUxFQURTfjFcTVBFRztDOlxQcm9ncmFtIEZpbGVzXEFUSSBUZWNobm9sb2dpZXNcQVRJLkFDRVxDb3JlLVN0YXRpYztDOlxQcm9ncmFtIEZpbGVzXENvbW1vbiBGaWxlc1xBY3JvbmlzXFNuYXBBUElcO0M6XFdpbmRvd3NcU3lzdGVtMzJcV2luZG93c1Bvd2VyU2hlbGxcdjEuMFw7QzpcUHJvZ3JhbSBGaWxlc1xRdWlja1RpbWVcUVRTeXN0ZW1c]]></property><property name="PATHEXT" fullname="$_SERVER['PATHEXT']" address="29073064" type="string" size="53" encoding="base64"><![CDATA[LkNPTTsuRVhFOy5CQVQ7LkNNRDsuVkJTOy5WQkU7LkpTOy5KU0U7LldTRjsuV1NIOy5NU0M=]]></property><property name="PHPRC" fullname="$_SERVER['PHPRC']" address="29073144" type="string" size="21" encoding="base64"><![CDATA[QzpcUHJvZ3JhbSBGaWxlc1xQSFBc]]></property><property name="PROCESSOR_ARCHITECTURE" fullname="$_SERVER['PROCESSOR_ARCHITECTURE']" address="29073256" type="string" size="3" encoding="base64"><![CDATA[eDg2]]></property><property name="PROCESSOR_IDENTIFIER" fullname="$_SERVER['PROCESSOR_IDENTIFIER']" address="29073336" type="string" size="47" encoding="base64"><![CDATA[eDg2IEZhbWlseSA2IE1vZGVsIDE1IFN0ZXBwaW5nIDEzLCBHZW51aW5lSW50ZWw=]]></property><property name="PROCESSOR_LEVEL" fullname="$_SERVER['PROCESSOR_LEVEL']" address="29073464" type="string" size="1" encoding="base64"><![CDATA[Ng==]]></property><property name="PROCESSOR_REVISION" fullname="$_SERVER['PROCESSOR_REVISION']" address="29073440" type="string" size="4" encoding="base64"><![CDATA[MGYwZA==]]></property><property name="ProgramData" fullname="$_SERVER['ProgramData']" address="29073680" type="string" size="14" encoding="base64"><![CDATA[QzpcUHJvZ3JhbURhdGE=]]></property><property name="ProgramFiles" fullname="$_SERVER['ProgramFiles']" address="29073760" type="string" size="16" encoding="base64"><![CDATA[QzpcUHJvZ3JhbSBGaWxlcw==]]></property><property name="PROMPT" fullname="$_SERVER['PROMPT']" address="29073656" type="string" size="4" encoding="base64"><![CDATA[JFAkRw==]]></property><property name="PSModulePath" fullname="$_SERVER['PSModulePath']" address="29074016" type="string" size="51" encoding="base64"><![CDATA[QzpcV2luZG93c1xzeXN0ZW0zMlxXaW5kb3dzUG93ZXJTaGVsbFx2MS4wXE1vZHVsZXNc]]></property><property name="PUBLIC" fullname="$_SERVER['PUBLIC']" address="29074096" type="string" size="15" encoding="base64"><![CDATA[QzpcVXNlcnNcUHVibGlj]]></property><property name="QTJAVA" fullname="$_SERVER['QTJAVA']" address="29074232" type="string" size="45" encoding="base64"><![CDATA[QzpcUHJvZ3JhbSBGaWxlc1xKYXZhXGpyZTZcbGliXGV4dFxRVEphdmEuemlw]]></property><property name="SESSIONNAME" fullname="$_SERVER['SESSIONNAME']" address="29074336" type="string" size="7" encoding="base64"><![CDATA[Q29uc29sZQ==]]></property></property></response>

<- context_get -i 158 -d 0
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="context_get" transaction_id="158" context="0"><property name="e" fullname="$e" type="uninitialized"></property><property name="y" fullname="$y" type="uninitialized"></property></response>

<- step_over -i 159
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_over" transaction_id="159" status="break" reason="ok"><xdebug:message filename="file:///D:/Users/MyUser/Documents/Eclipse/Workspace/TheApp/Basis/xdbg.php" lineno="13"></xdebug:message></response>

<- stack_get -i 160
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="160"><stack where="{main}" level="0" type="file" filename="file:///D:/Users/MyUser/Documents/Eclipse/Workspace/TheApp/Basis/xdbg.php" lineno="13"></stack></response>

<- context_get -i 161 -c 1
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="context_get" transaction_id="161" context="1"><property name="_COOKIE" fullname="$_COOKIE" address="29069064" type="array" children="0" numchildren="0"></property><property name="_ENV" fullname="$_ENV" address="29090512" type="array" children="0" numchildren="0"></property><property name="_FILES" fullname="$_FILES" address="29069824" type="array" children="0" numchildren="0"></property><property name="_GET" fullname="$_GET" address="29068992" type="array" children="0" numchildren="0"></property><property name="_POST" fullname="$_POST" address="29069552" type="array" children="0" numchildren="0"></property><property name="_REQUEST" fullname="$_REQUEST" address="29090408" type="array" children="0" numchildren="0"></property><property name="_SERVER" fullname="$_SERVER" address="29070200" type="array" children="1" numchildren="50" page="0" pagesize="31"><property name="ALLUSERSPROFILE" fullname="$_SERVER['ALLUSERSPROFILE']" address="29070464" type="string" size="14" encoding="base64"><![CDATA[QzpcUHJvZ3JhbURhdGE=]]></property><property name="APPDATA" fullname="$_SERVER['APPDATA']" address="29070440" type="string" size="30" encoding="base64"><![CDATA[QzpcVXNlcnNcRnJhbmtcQXBwRGF0YVxSb2FtaW5n]]></property><property name="CLASSPATH" fullname="$_SERVER['CLASSPATH']" address="29070744" type="string" size="47" encoding="base64"><![CDATA[LjtDOlxQcm9ncmFtIEZpbGVzXEphdmFcanJlNlxsaWJcZXh0XFFUSmF2YS56aXA=]]></property><property name="CommonProgramFiles" fullname="$_SERVER['CommonProgramFiles']" address="29070720" type="string" size="29" encoding="base64"><![CDATA[QzpcUHJvZ3JhbSBGaWxlc1xDb21tb24gRmlsZXM=]]></property><property name="COMPUTERNAME" fullname="$_SERVER['COMPUTERNAME']" address="29070984" type="string" size="6" encoding="base64"><![CDATA[SkFKQUpB]]></property><property name="ComSpec" fullname="$_SERVER['ComSpec']" address="29070960" type="string" size="27" encoding="base64"><![CDATA[QzpcV2luZG93c1xzeXN0ZW0zMlxjbWQuZXhl]]></property><property name="DBGP_COOKIE" fullname="$_SERVER['DBGP_COOKIE']" address="29071224" type="string" size="14" encoding="base64"><![CDATA[MTI3MTA5Njk1NTU1MDg=]]></property><property name="DBGP_IDEKEY" fullname="$_SERVER['DBGP_IDEKEY']" address="29071328" type="string" size="12" encoding="base64"><![CDATA[RUNMSVBTRV9EQkdQ]]></property><property name="DFSTRACINGON" fullname="$_SERVER['DFSTRACINGON']" address="29071408" type="string" size="5" encoding="base64"><![CDATA[RkFMU0U=]]></property><property name="FP_NO_HOST_CHECK" fullname="$_SERVER['FP_NO_HOST_CHECK']" address="29071304" type="string" size="2" encoding="base64"><![CDATA[Tk8=]]></property><property name="HOMEDRIVE" fullname="$_SERVER['HOMEDRIVE']" address="29071680" type="string" size="2" encoding="base64"><![CDATA[Qzo=]]></property><property name="HOMEPATH" fullname="$_SERVER['HOMEPATH']" address="29071784" type="string" size="12" encoding="base64"><![CDATA[XFVzZXJzXEZyYW5r]]></property><property name="LD_LIBRARY_PATH" fullname="$_SERVER['LD_LIBRARY_PATH']" address="29071864" type="string" size="20" encoding="base64"><![CDATA[QzpcUHJvZ3JhbSBGaWxlc1xQSFA=]]></property><property name="LOCALAPPDATA" fullname="$_SERVER['LOCALAPPDATA']" address="29071952" type="string" size="28" encoding="base64"><![CDATA[QzpcVXNlcnNcRnJhbmtcQXBwRGF0YVxMb2NhbA==]]></property><property name="LOGONSERVER" fullname="$_SERVER['LOGONSERVER']" address="29072056" type="string" size="8" encoding="base64"><![CDATA[XFxKQUpBSkE=]]></property><property name="NUMBER_OF_PROCESSORS" fullname="$_SERVER['NUMBER_OF_PROCESSORS']" address="29072032" type="string" size="1" encoding="base64"><![CDATA[Mg==]]></property><property name="OS" fullname="$_SERVER['OS']" address="29072288" type="string" size="10" encoding="base64"><![CDATA[V2luZG93c19OVA==]]></property><property name="Path" fullname="$_SERVER['Path']" address="29072928" type="string" size="423" encoding="base64"><![CDATA[QzovUHJvZ3JhbSBGaWxlcy9KYXZhL2pyZTYvYmluL2NsaWVudDtDOi9Qcm9ncmFtIEZpbGVzL0phdmEvanJlNi9iaW47QzpcUHJvZ3JhbSBGaWxlc1xQSFBcO0M6XFByb2dyYW0gRmlsZXNcQ29tbW9uIEZpbGVzXE1pY3Jvc29mdCBTaGFyZWRcV2luZG93cyBMaXZlO0M6XFdpbmRvd3Ncc3lzdGVtMzI7QzpcV2luZG93cztDOlxXaW5kb3dzXFN5c3RlbTMyXFdiZW07QzpcUFJPR1JBfjFcQ09NTU9OfjFcVUxFQURTfjFcTVBFRztDOlxQcm9ncmFtIEZpbGVzXEFUSSBUZWNobm9sb2dpZXNcQVRJLkFDRVxDb3JlLVN0YXRpYztDOlxQcm9ncmFtIEZpbGVzXENvbW1vbiBGaWxlc1xBY3JvbmlzXFNuYXBBUElcO0M6XFdpbmRvd3NcU3lzdGVtMzJcV2luZG93c1Bvd2VyU2hlbGxcdjEuMFw7QzpcUHJvZ3JhbSBGaWxlc1xRdWlja1RpbWVcUVRTeXN0ZW1c]]></property><property name="PATHEXT" fullname="$_SERVER['PATHEXT']" address="29073064" type="string" size="53" encoding="base64"><![CDATA[LkNPTTsuRVhFOy5CQVQ7LkNNRDsuVkJTOy5WQkU7LkpTOy5KU0U7LldTRjsuV1NIOy5NU0M=]]></property><property name="PHPRC" fullname="$_SERVER['PHPRC']" address="29073144" type="string" size="21" encoding="base64"><![CDATA[QzpcUHJvZ3JhbSBGaWxlc1xQSFBc]]></property><property name="PROCESSOR_ARCHITECTURE" fullname="$_SERVER['PROCESSOR_ARCHITECTURE']" address="29073256" type="string" size="3" encoding="base64"><![CDATA[eDg2]]></property><property name="PROCESSOR_IDENTIFIER" fullname="$_SERVER['PROCESSOR_IDENTIFIER']" address="29073336" type="string" size="47" encoding="base64"><![CDATA[eDg2IEZhbWlseSA2IE1vZGVsIDE1IFN0ZXBwaW5nIDEzLCBHZW51aW5lSW50ZWw=]]></property><property name="PROCESSOR_LEVEL" fullname="$_SERVER['PROCESSOR_LEVEL']" address="29073464" type="string" size="1" encoding="base64"><![CDATA[Ng==]]></property><property name="PROCESSOR_REVISION" fullname="$_SERVER['PROCESSOR_REVISION']" address="29073440" type="string" size="4" encoding="base64"><![CDATA[MGYwZA==]]></property><property name="ProgramData" fullname="$_SERVER['ProgramData']" address="29073680" type="string" size="14" encoding="base64"><![CDATA[QzpcUHJvZ3JhbURhdGE=]]></property><property name="ProgramFiles" fullname="$_SERVER['ProgramFiles']" address="29073760" type="string" size="16" encoding="base64"><![CDATA[QzpcUHJvZ3JhbSBGaWxlcw==]]></property><property name="PROMPT" fullname="$_SERVER['PROMPT']" address="29073656" type="string" size="4" encoding="base64"><![CDATA[JFAkRw==]]></property><property name="PSModulePath" fullname="$_SERVER['PSModulePath']" address="29074016" type="string" size="51" encoding="base64"><![CDATA[QzpcV2luZG93c1xzeXN0ZW0zMlxXaW5kb3dzUG93ZXJTaGVsbFx2MS4wXE1vZHVsZXNc]]></property><property name="PUBLIC" fullname="$_SERVER['PUBLIC']" address="29074096" type="string" size="15" encoding="base64"><![CDATA[QzpcVXNlcnNcUHVibGlj]]></property><property name="QTJAVA" fullname="$_SERVER['QTJAVA']" address="29074232" type="string" size="45" encoding="base64"><![CDATA[QzpcUHJvZ3JhbSBGaWxlc1xKYXZhXGpyZTZcbGliXGV4dFxRVEphdmEuemlw]]></property><property name="SESSIONNAME" fullname="$_SERVER['SESSIONNAME']" address="29074336" type="string" size="7" encoding="base64"><![CDATA[Q29uc29sZQ==]]></property></property></response>

<- context_get -i 162 -d 0
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="context_get" transaction_id="162" context="0"><property name="e" fullname="$e" type="uninitialized"></property><property name="y" fullname="$y" type="uninitialized"></property></response>

<- step_over -i 163
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_over" transaction_id="163" status="break" reason="ok"><xdebug:message filename="file:///D:/Users/MyUser/Documents/Eclipse/Workspace/TheApp/Basis/xdbg.php" lineno="15"></xdebug:message></response>

<- stack_get -i 164
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="164"><stack where="{main}" level="0" type="file" filename="file:///D:/Users/MyUser/Documents/Eclipse/Workspace/TheApp/Basis/xdbg.php" lineno="15"></stack></response>

<- context_get -i 165 -c 1
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="context_get" transaction_id="165" context="1"><property name="_COOKIE" fullname="$_COOKIE" address="29069064" type="array" children="0" numchildren="0"></property><property name="_ENV" fullname="$_ENV" address="29090512" type="array" children="0" numchildren="0"></property><property name="_FILES" fullname="$_FILES" address="29069824" type="array" children="0" numchildren="0"></property><property name="_GET" fullname="$_GET" address="29068992" type="array" children="0" numchildren="0"></property><property name="_POST" fullname="$_POST" address="29069552" type="array" children="0" numchildren="0"></property><property name="_REQUEST" fullname="$_REQUEST" address="29090408" type="array" children="0" numchildren="0"></property><property name="_SERVER" fullname="$_SERVER" address="29070200" type="array" children="1" numchildren="50" page="0" pagesize="31"><property name="ALLUSERSPROFILE" fullname="$_SERVER['ALLUSERSPROFILE']" address="29070464" type="string" size="14" encoding="base64"><![CDATA[QzpcUHJvZ3JhbURhdGE=]]></property><property name="APPDATA" fullname="$_SERVER['APPDATA']" address="29070440" type="string" size="30" encoding="base64"><![CDATA[QzpcVXNlcnNcRnJhbmtcQXBwRGF0YVxSb2FtaW5n]]></property><property name="CLASSPATH" fullname="$_SERVER['CLASSPATH']" address="29070744" type="string" size="47" encoding="base64"><![CDATA[LjtDOlxQcm9ncmFtIEZpbGVzXEphdmFcanJlNlxsaWJcZXh0XFFUSmF2YS56aXA=]]></property><property name="CommonProgramFiles" fullname="$_SERVER['CommonProgramFiles']" address="29070720" type="string" size="29" encoding="base64"><![CDATA[QzpcUHJvZ3JhbSBGaWxlc1xDb21tb24gRmlsZXM=]]></property><property name="COMPUTERNAME" fullname="$_SERVER['COMPUTERNAME']" address="29070984" type="string" size="6" encoding="base64"><![CDATA[SkFKQUpB]]></property><property name="ComSpec" fullname="$_SERVER['ComSpec']" address="29070960" type="string" size="27" encoding="base64"><![CDATA[QzpcV2luZG93c1xzeXN0ZW0zMlxjbWQuZXhl]]></property><property name="DBGP_COOKIE" fullname="$_SERVER['DBGP_COOKIE']" address="29071224" type="string" size="14" encoding="base64"><![CDATA[MTI3MTA5Njk1NTU1MDg=]]></property><property name="DBGP_IDEKEY" fullname="$_SERVER['DBGP_IDEKEY']" address="29071328" type="string" size="12" encoding="base64"><![CDATA[RUNMSVBTRV9EQkdQ]]></property><property name="DFSTRACINGON" fullname="$_SERVER['DFSTRACINGON']" address="29071408" type="string" size="5" encoding="base64"><![CDATA[RkFMU0U=]]></property><property name="FP_NO_HOST_CHECK" fullname="$_SERVER['FP_NO_HOST_CHECK']" address="29071304" type="string" size="2" encoding="base64"><![CDATA[Tk8=]]></property><property name="HOMEDRIVE" fullname="$_SERVER['HOMEDRIVE']" address="29071680" type="string" size="2" encoding="base64"><![CDATA[Qzo=]]></property><property name="HOMEPATH" fullname="$_SERVER['HOMEPATH']" address="29071784" type="string" size="12" encoding="base64"><![CDATA[XFVzZXJzXEZyYW5r]]></property><property name="LD_LIBRARY_PATH" fullname="$_SERVER['LD_LIBRARY_PATH']" address="29071864" type="string" size="20" encoding="base64"><![CDATA[QzpcUHJvZ3JhbSBGaWxlc1xQSFA=]]></property><property name="LOCALAPPDATA" fullname="$_SERVER['LOCALAPPDATA']" address="29071952" type="string" size="28" encoding="base64"><![CDATA[QzpcVXNlcnNcRnJhbmtcQXBwRGF0YVxMb2NhbA==]]></property><property name="LOGONSERVER" fullname="$_SERVER['LOGONSERVER']" address="29072056" type="string" size="8" encoding="base64"><![CDATA[XFxKQUpBSkE=]]></property><property name="NUMBER_OF_PROCESSORS" fullname="$_SERVER['NUMBER_OF_PROCESSORS']" address="29072032" type="string" size="1" encoding="base64"><![CDATA[Mg==]]></property><property name="OS" fullname="$_SERVER['OS']" address="29072288" type="string" size="10" encoding="base64"><![CDATA[V2luZG93c19OVA==]]></property><property name="Path" fullname="$_SERVER['Path']" address="29072928" type="string" size="423" encoding="base64"><![CDATA[QzovUHJvZ3JhbSBGaWxlcy9KYXZhL2pyZTYvYmluL2NsaWVudDtDOi9Qcm9ncmFtIEZpbGVzL0phdmEvanJlNi9iaW47QzpcUHJvZ3JhbSBGaWxlc1xQSFBcO0M6XFByb2dyYW0gRmlsZXNcQ29tbW9uIEZpbGVzXE1pY3Jvc29mdCBTaGFyZWRcV2luZG93cyBMaXZlO0M6XFdpbmRvd3Ncc3lzdGVtMzI7QzpcV2luZG93cztDOlxXaW5kb3dzXFN5c3RlbTMyXFdiZW07QzpcUFJPR1JBfjFcQ09NTU9OfjFcVUxFQURTfjFcTVBFRztDOlxQcm9ncmFtIEZpbGVzXEFUSSBUZWNobm9sb2dpZXNcQVRJLkFDRVxDb3JlLVN0YXRpYztDOlxQcm9ncmFtIEZpbGVzXENvbW1vbiBGaWxlc1xBY3JvbmlzXFNuYXBBUElcO0M6XFdpbmRvd3NcU3lzdGVtMzJcV2luZG93c1Bvd2VyU2hlbGxcdjEuMFw7QzpcUHJvZ3JhbSBGaWxlc1xRdWlja1RpbWVcUVRTeXN0ZW1c]]></property><property name="PATHEXT" fullname="$_SERVER['PATHEXT']" address="29073064" type="string" size="53" encoding="base64"><![CDATA[LkNPTTsuRVhFOy5CQVQ7LkNNRDsuVkJTOy5WQkU7LkpTOy5KU0U7LldTRjsuV1NIOy5NU0M=]]></property><property name="PHPRC" fullname="$_SERVER['PHPRC']" address="29073144" type="string" size="21" encoding="base64"><![CDATA[QzpcUHJvZ3JhbSBGaWxlc1xQSFBc]]></property><property name="PROCESSOR_ARCHITECTURE" fullname="$_SERVER['PROCESSOR_ARCHITECTURE']" address="29073256" type="string" size="3" encoding="base64"><![CDATA[eDg2]]></property><property name="PROCESSOR_IDENTIFIER" fullname="$_SERVER['PROCESSOR_IDENTIFIER']" address="29073336" type="string" size="47" encoding="base64"><![CDATA[eDg2IEZhbWlseSA2IE1vZGVsIDE1IFN0ZXBwaW5nIDEzLCBHZW51aW5lSW50ZWw=]]></property><property name="PROCESSOR_LEVEL" fullname="$_SERVER['PROCESSOR_LEVEL']" address="29073464" type="string" size="1" encoding="base64"><![CDATA[Ng==]]></property><property name="PROCESSOR_REVISION" fullname="$_SERVER['PROCESSOR_REVISION']" address="29073440" type="string" size="4" encoding="base64"><![CDATA[MGYwZA==]]></property><property name="ProgramData" fullname="$_SERVER['ProgramData']" address="29073680" type="string" size="14" encoding="base64"><![CDATA[QzpcUHJvZ3JhbURhdGE=]]></property><property name="ProgramFiles" fullname="$_SERVER['ProgramFiles']" address="29073760" type="string" size="16" encoding="base64"><![CDATA[QzpcUHJvZ3JhbSBGaWxlcw==]]></property><property name="PROMPT" fullname="$_SERVER['PROMPT']" address="29073656" type="string" size="4" encoding="base64"><![CDATA[JFAkRw==]]></property><property name="PSModulePath" fullname="$_SERVER['PSModulePath']" address="29074016" type="string" size="51" encoding="base64"><![CDATA[QzpcV2luZG93c1xzeXN0ZW0zMlxXaW5kb3dzUG93ZXJTaGVsbFx2MS4wXE1vZHVsZXNc]]></property><property name="PUBLIC" fullname="$_SERVER['PUBLIC']" address="29074096" type="string" size="15" encoding="base64"><![CDATA[QzpcVXNlcnNcUHVibGlj]]></property><property name="QTJAVA" fullname="$_SERVER['QTJAVA']" address="29074232" type="string" size="45" encoding="base64"><![CDATA[QzpcUHJvZ3JhbSBGaWxlc1xKYXZhXGpyZTZcbGliXGV4dFxRVEphdmEuemlw]]></property><property name="SESSIONNAME" fullname="$_SERVER['SESSIONNAME']" address="29074336" type="string" size="7" encoding="base64"><![CDATA[Q29uc29sZQ==]]></property></property></response>

<- context_get -i 166 -d 0
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="context_get" transaction_id="166" context="0"><property name="e" fullname="$e" type="uninitialized"></property><property name="y" fullname="$y" address="29085888" type="object" children="0" classname="Test" numchildren="0"></property></response>

<- step_over -i 167
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_over" transaction_id="167" status="stopping" reason="ok"></response>

<- stop -i 168
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stop" transaction_id="168" status="stopped" reason="ok"></response>

Log closed at 2010-04-12 18:29:21
TagsNo tags attached.
Operating System
PHP Version5.2.10

Activities

xformer

2010-04-12 18:42

reporter   ~0001443

This does not happen when I use the Zend debugger. It correctly lets the trigger_error exception be catched.

derick

2010-04-13 19:41

administrator   ~0001446

There is no bug here. In order to catch notices, warnings and errors in the debugger, you need to set an exception. The protocol command to catch fatal errors, is:

breakpoint_set -i 1 -t exception -x "Fatal error"

I've just tested that, and it works fine. Of course, your IDE needs to support setting breakpoints on Exceptions. For more information on the protocol, please check http://xdebug.org/docs-dbgp.php#breakpoints

Issue History

Date Modified Username Field Change
2010-04-12 18:41 xformer New Issue
2010-04-12 18:41 xformer PHP Version => 5.2.10
2010-04-12 18:41 xformer Xdebug Version => 2.0.5
2010-04-12 18:42 xformer Note Added: 0001443
2010-04-13 19:41 derick Note Added: 0001446
2010-04-13 19:41 derick Status new => resolved
2010-04-13 19:41 derick Resolution open => no change required
2010-04-13 19:41 derick Assigned To => derick
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)