View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0000924||Xdebug||Step Debugging||public||2013-02-13 18:28||2017-01-10 14:28|
|Platform||eclipse/pdt||OS||windows7||OS Version||home premium sp1|
|Summary||0000924: $test = array("\0" => ''); renders variable view inoperable|
|Description||Encountered w/ eclipse, 4.2.1 and earlier 3.x.|
Seems like a simple variable array declared as
$test = array("\0" => '');
Will wipe out the variable view such that no variables will appear in the window during subsequent code execution.
|Steps To Reproduce||error_reporting(-1); // added as sanity check|
$hello = 'world'; // variable window shows globals and $hello, all normal
$test = array("\0" => ''); // when executed, wipes out variable view, unable to find a way to recover variable view.
|Additional Information||Don't know if this is eclipse problem or xdebug problem or illegal php statement. I know that program executes successfully to completion without any errors thrown by php and results are normal.|
Apologies if this is known issue as I am new to xdebug. I searched around a bit for 'xdebug null byte' etc and didn't find anything on it.
Thank you very much for your consideration!
|Tags||No tags attached.|
|duplicate of||0001312||closed||derick||Implement DBGP's extended_properties to support names and values with \0|
|has duplicate||0000610||resolved||derick||Xdebug sends invalid '�' char reference in response|
|has duplicate||0000940||resolved||derick||xdebug quits when it reaches an object cast to array that contained protected properties|
|has duplicate||0000953||resolved||derick||Can not debug arrays which keys contain zero characters|
||So, this seems to be working just fine on the Xdebug side, however, the XML it generates is not liked by the IDEs. In order to fix this, I need a change in the debug protocol which requires some deliberation with other implementors.|
The following addition has been suggested to the DBGp protocol for this:
||Thank you for your work, Derick: ) Hope most popular IDEs will accept and implement your changes quickly.|
Hi Derick, it looks like the XML being generated by Xdebug is actually invalid. I tried dumping it into a couple of web browsers and they tell me the XML is invalid.
I'm running into the error debugging WordPress, and my IDE, (Sublime Text), is choking on the invalid XML.
The fragment of XML that the browsers don't like is:
<property name="lambda_13" fullname="$wp_filter['widgets_init']['lambda_13']" address="4579437104" type="array" children="1" numchildren="2"></property>
That first � seems to be the problem.
I'm experiencing this on OS X 10.9.2, with PHP 5.5 and Xdebug 2.2.5.
I've opened an issue with the Sublime Text Xdebug client as well, ( https://github.com/martomo/SublimeTextXdebug/issues/77 ), but I'm not sure what they can do, the XML seems to be parsed using a built-in python XML parser or something.
Hi, is there any progress in implementing Dericks proposal into xdebug's dbgp protocol? For me, this is critical problem which prevents me from debugging almost all my code...
||Duplicate of 0001312, which is fixed for Xdebug 2.6.0 - as long as the IDE supports DBGp's extended_properties feature.|
|2013-02-13 18:28||bobl||New Issue|
|2013-05-18 18:37||derick||Note Added: 0002467|
|2013-05-18 18:37||derick||Assigned To||=> derick|
|2013-05-18 18:37||derick||Status||new => acknowledged|
|2013-05-18 21:03||derick||Relationship added||has duplicate 0000610|
|2013-05-18 21:09||derick||Relationship added||has duplicate 0000940|
|2013-06-22 13:02||derick||Relationship added||has duplicate 0000953|
|2013-06-22 13:37||derick||Note Added: 0002509|
|2013-07-09 00:29||speller||Note Added: 0002531|
|2014-05-03 22:21||jbeales||Note Added: 0002807|
|2014-06-05 20:17||honza.trtik||Note Added: 0002843|
|2014-06-06 08:03||honza.trtik||Note Edited: 0002843|
|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)|
|2017-01-10 14:27||derick||Note Added: 0004170|
|2017-01-10 14:27||derick||Relationship added||duplicate of 0001312|
|2017-01-10 14:27||derick||Status||acknowledged => resolved|
|2017-01-10 14:27||derick||Resolution||open => duplicate|
|2017-01-10 14:28||derick||Category||(No Category) => Remote Debugging|
|2017-01-10 14:28||derick||Steps to Reproduce Updated|
|2020-03-12 16:33||derick||Category||Remote Debugging => Step Debugging|