MantisBT - Xdebug
View Issue Details
0000778Xdebug(No Category)public2012-02-15 20:552012-02-15 23:12
dinkenet 
derick 
normalminoralways
closedfixed 
MacOS X10.6.8
2.2dev 
 
Mac OS X 10.6.8
5.3.9
0000778: Xdebug session in Eclipse crash whenever it run into simplexml_load_string call
I was doing usuall "remote debugging" session in Eclipse when I noticed that it always crash whenever it reach line with simplexml_load_string call. I get "Unexpected termination of script, debugging ended" message in small popup.
Create really simple php script that use simplexml_load_string function, I used this one:

<?php
$xml = '<?xml version="1.0" encoding="UTF-8" ?>
<root>
</root>';
$temp = simplexml_load_string($xml, "SimpleXMLElement", LIBXML_NOERROR);
echo "It works?";
?>

Start debugger in Eclipse i.e. by pointing to script's url and start remote debugging session (I do it with Firefox easyXdebug ext). Do "Step Into" till you reach simplexml line. After you run it you'll let "Unexpected termination of script, debugging ended".

Screenshot: http://grab.by/bYnk [^]
xdebug php.ini settings:
version: 2.2dev
[xdebug]
zend_extension="/opt/local/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so"
xdebug.profiler_output_dir = "/tmp/xdebug/"
xdebug.profiler_enable = On
xdebug.remote_enable=On
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
xdebug.idekey=ECLIPSE_DBGP
xdebug.var_display_max_data=65535
xdebug.var_display_max_depth = 128
No tags attached.
zip xdebug_remote.log.zip (3,035) 2012-02-15 22:19
https://bugs.xdebug.org/file_download.php?file_id=55&type=bug
Issue History
2012-02-15 20:55dinkenetNew Issue
2012-02-15 21:53derickNote Added: 0001917
2012-02-15 21:53derickAssigned To => derick
2012-02-15 21:53derickStatusnew => feedback
2012-02-15 22:19dinkenetFile Added: xdebug_remote.log.zip
2012-02-15 22:20dinkenetNote Added: 0001918
2012-02-15 22:20dinkenetStatusfeedback => assigned
2012-02-15 23:12derickNote Added: 0001919
2012-02-15 23:12derickStatusassigned => closed
2012-02-15 23:12derickResolutionopen => fixed
2016-07-31 13:35derickCategoryDebug client (console) => debugclient (debugging tool)
2016-07-31 13:35derickCategorydebugclient (debugging tool) => (No Category)

Notes
(0001917)
derick   
2012-02-15 21:53   
Could you please provide a remote debug log? Use the xdebug.remote_log setting for that please
(0001918)
dinkenet   
2012-02-15 22:20   
Uploaded file, it contains only session with test code example I posted above. Let me know if you need anything else.
(0001919)
derick   
2012-02-15 23:12   
Fixed on github. Thanks!