View Issue Details

IDProjectCategoryView StatusLast Update
0000860XdebugStep Debuggingpublic2017-01-03 18:54
Reporterbogdan.albei Assigned Toderick  
PriorityhighSeveritycrashReproducibilityalways
Status resolvedResolutionunable to reproduce 
PlatformZend Studio 8/Eclipse PDTOSWindowsOS Version7
Product Version2.2.0 
Summary0000860: unexpected termination of script, debugging ended
Description

If I debug from the command line a phpunit test, then I get "unexpected termination of script, debugging ended". Please note that there is no problem if I debug some other script than a phpunit test.
I don't have any expressions in the IDE or anything like that.

Steps To Reproduce

put the breakpoint on the first line of the test, run it and then I get the error.
Below is the source for the test:

<?php
class SimpleTest extends \PHPUnit_Framework_TestCase
{
public function testSomething()
{
$this->assertTrue(TRUE);
$this->assertFalse(FALSE);
}
}

Additional Information

Attached is the xdebug log.

TagsNo tags attached.
Attached Files
xdebug_remote_log (9,247 bytes)   
Log opened at 2012-06-26 14:36:07
I: Connecting to configured address/port: 10.203.178.189:9000.
I: Connected to client. :-)
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///home/bogdan/mangahigh.com/application/Mhf/Test/phpunit" language="PHP" protocol_version="1.0" appid="20945" idekey="ECLIPSE_DBGP_10.203.178.51"><engine version="2.3.0dev"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2012 by Derick Rethans]]></copyright></init>

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

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

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

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

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

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

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

<- breakpoint_set -i 39 -t line -f file:///home/bogdan/mangahigh.com/application/Mhf/Test/Library/Message/BusGatewayTest.php -n 24
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="39" id="209450001"></response>

<- breakpoint_set -i 40 -t line -f file:///home/bogdan/mangahigh.com/application/Mhf/Test/SimpleTest.php -n 6
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="40" id="209450002"></response>

<- step_into -i 41
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="41" status="break" reason="ok"><xdebug:message filename="file:///home/bogdan/mangahigh.com/application/Mhf/Test/phpunit" lineno="38"></xdebug:message></response>

<- stack_get -i 42
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="42"><stack where="{main}" level="0" type="file" filename="file:///home/bogdan/mangahigh.com/application/Mhf/Test/phpunit" lineno="38"></stack></response>

<- run -i 43
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="run" transaction_id="43" status="break" reason="ok"><xdebug:message filename="file:///home/bogdan/mangahigh.com/application/Mhf/Test/SimpleTest.php" lineno="6"></xdebug:message></response>

<- stack_get -i 44
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="44"><stack where="SimpleTest-&gt;testSomething" level="0" type="file" filename="file:///home/bogdan/mangahigh.com/application/Mhf/Test/SimpleTest.php" lineno="6"></stack><stack where="ReflectionMethod-&gt;invokeArgs" level="1" type="file" filename="file:///home/bogdan/mangahigh.com/application/pear/PHPUnit/Framework/TestCase.php" lineno="942"></stack><stack where="PHPUnit_Framework_TestCase-&gt;runTest" level="2" type="file" filename="file:///home/bogdan/mangahigh.com/application/pear/PHPUnit/Framework/TestCase.php" lineno="942"></stack><stack where="PHPUnit_Framework_TestCase-&gt;runBare" level="3" type="file" filename="file:///home/bogdan/mangahigh.com/application/pear/PHPUnit/Framework/TestCase.php" lineno="804"></stack><stack where="call_user_func_array" level="4" type="file" filename="file:///home/bogdan/mangahigh.com/application/pear/PHP/Invoker.php" lineno="93"></stack><stack where="PHP_Invoker-&gt;invoke" level="5" type="file" filename="file:///home/bogdan/mangahigh.com/application/pear/PHP/Invoker.php" lineno="93"></stack><stack where="PHPUnit_Framework_TestResult-&gt;run" level="6" type="file" filename="file:///home/bogdan/mangahigh.com/application/pear/PHPUnit/Framework/TestResult.php" lineno="647"></stack><stack where="PHPUnit_Framework_TestCase-&gt;run" level="7" type="file" filename="file:///home/bogdan/mangahigh.com/application/pear/PHPUnit/Framework/TestCase.php" lineno="751"></stack><stack where="PHPUnit_Framework_TestSuite-&gt;runTest" level="8" type="file" filename="file:///home/bogdan/mangahigh.com/application/pear/PHPUnit/Framework/TestSuite.php" lineno="772"></stack><stack where="PHPUnit_Framework_TestSuite-&gt;run" level="9" type="file" filename="file:///home/bogdan/mangahigh.com/application/pear/PHPUnit/Framework/TestSuite.php" lineno="745"></stack><stack where="PHPUnit_TextUI_TestRunner-&gt;doRun" level="10" type="file" filename="file:///home/bogdan/mangahigh.com/application/pear/PHPUnit/TextUI/TestRunner.php" lineno="325"></stack><stack where="PHPUnit_TextUI_Command-&gt;run" level="11" type="file" filename="file:///home/bogdan/mangahigh.com/application/pear/PHPUnit/TextUI/Command.php" lineno="192"></stack><stack where="PHPUnit_TextUI_Command::main" level="12" type="file" filename="file:///home/bogdan/mangahigh.com/application/pear/PHPUnit/TextUI/Command.php" lineno="130"></stack><stack where="{main}" level="13" type="file" filename="file:///home/bogdan/mangahigh.com/application/Mhf/Test/phpunit" lineno="63"></stack></response>

<- stack_get -i 45
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="45"><stack where="SimpleTest-&gt;testSomething" level="0" type="file" filename="file:///home/bogdan/mangahigh.com/application/Mhf/Test/SimpleTest.php" lineno="6"></stack><stack where="ReflectionMethod-&gt;invokeArgs" level="1" type="file" filename="file:///home/bogdan/mangahigh.com/application/pear/PHPUnit/Framework/TestCase.php" lineno="942"></stack><stack where="PHPUnit_Framework_TestCase-&gt;runTest" level="2" type="file" filename="file:///home/bogdan/mangahigh.com/application/pear/PHPUnit/Framework/TestCase.php" lineno="942"></stack><stack where="PHPUnit_Framework_TestCase-&gt;runBare" level="3" type="file" filename="file:///home/bogdan/mangahigh.com/application/pear/PHPUnit/Framework/TestCase.php" lineno="804"></stack><stack where="call_user_func_array" level="4" type="file" filename="file:///home/bogdan/mangahigh.com/application/pear/PHP/Invoker.php" lineno="93"></stack><stack where="PHP_Invoker-&gt;invoke" level="5" type="file" filename="file:///home/bogdan/mangahigh.com/application/pear/PHP/Invoker.php" lineno="93"></stack><stack where="PHPUnit_Framework_TestResult-&gt;run" level="6" type="file" filename="file:///home/bogdan/mangahigh.com/application/pear/PHPUnit/Framework/TestResult.php" lineno="647"></stack><stack where="PHPUnit_Framework_TestCase-&gt;run" level="7" type="file" filename="file:///home/bogdan/mangahigh.com/application/pear/PHPUnit/Framework/TestCase.php" lineno="751"></stack><stack where="PHPUnit_Framework_TestSuite-&gt;runTest" level="8" type="file" filename="file:///home/bogdan/mangahigh.com/application/pear/PHPUnit/Framework/TestSuite.php" lineno="772"></stack><stack where="PHPUnit_Framework_TestSuite-&gt;run" level="9" type="file" filename="file:///home/bogdan/mangahigh.com/application/pear/PHPUnit/Framework/TestSuite.php" lineno="745"></stack><stack where="PHPUnit_TextUI_TestRunner-&gt;doRun" level="10" type="file" filename="file:///home/bogdan/mangahigh.com/application/pear/PHPUnit/TextUI/TestRunner.php" lineno="325"></stack><stack where="PHPUnit_TextUI_Command-&gt;run" level="11" type="file" filename="file:///home/bogdan/mangahigh.com/application/pear/PHPUnit/TextUI/Command.php" lineno="192"></stack><stack where="PHPUnit_TextUI_Command::main" level="12" type="file" filename="file:///home/bogdan/mangahigh.com/application/pear/PHPUnit/TextUI/Command.php" lineno="130"></stack><stack where="{main}" level="13" type="file" filename="file:///home/bogdan/mangahigh.com/application/Mhf/Test/phpunit" lineno="63"></stack></response>

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

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

Log closed at 2012-06-26 14:36:12

xdebug_remote_log (9,247 bytes)   
Operating SystemCentOS release 5.8
PHP Version5.3.10

Activities

derick

2016-12-11 23:57

administrator   ~0004017

Is this still a problem for you with the latest versions of PHP and Xdebug?

derick

2017-01-03 18:54

administrator   ~0004136

I can't reproduce this, and no additional information has been provided. I am closing this issue for now, but feel free to reopen if you can provide more.

Issue History

Date Modified Username Field Change
2012-06-26 14:38 bogdan.albei New Issue
2012-06-26 14:38 bogdan.albei File Added: xdebug_remote_log
2016-07-31 12:35 derick Category Debug client (console) => debugclient (debugging tool)
2016-07-31 12:35 derick Category debugclient (debugging tool) => (No Category)
2016-12-11 23:57 derick Category (No Category) => Remote Debugging
2016-12-11 23:57 derick Note Added: 0004017
2016-12-11 23:57 derick Assigned To => derick
2016-12-11 23:57 derick Status new => feedback
2017-01-03 18:54 derick Note Added: 0004136
2017-01-03 18:54 derick Status feedback => resolved
2017-01-03 18:54 derick Resolution open => unable to reproduce
2020-03-12 16:33 derick Category Remote Debugging => Step Debugging