View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001312||Xdebug||Step Debugging||public||2016-06-10 09:15||2020-03-12 16:43|
|Target Version||2.6.0||Fixed in Version||2.6.0alpha1|
|Summary||0001312: Implement DBGP's extended_properties to support names and values with \0|
If I use this snippet in my code:
Where $entity is any instantiated object I throw in.
XDebug will not step further beyond the $clone declaration. I'm using PHPStorm as IDE.
I thought the SPL objects didn't cause a problem anymore since the fixed 0000686 issue? Anything I missed?
I can reproduce this over and over again.
|Steps To Reproduce|
// This can be any object, while stdClass() or an array are fine
Any breakpoint beyond the $clone declaration will not be reached.
|Tags||getarraycopy, iterator, recursive array iterator, SPL, standard php library|
Can you provide all the information as is described at: https://xdebug.org/support.php#remote ?
xdebug.log (41,802 bytes)
I've uploaded the requested files.
If I set the breakpoint at $test (last instruction) XDebug will not reach it.
This seems to be not a bug in Xdebug, but something that is not implemented. Because the property name has a null character in it, Xdebug can not send it over the protocol, but it does. PhpStorm's XML parser can't handle and errors out, and closes the connection with:
The DBGp protocol that Xdebug uses, does support a different approach to this, through "extended_properties" as is described at https://xdebug.org/docs-dbgp.php#properties-variables-and-values
Xdebug (and I presume, PhpStorm), don't support this yet. So I am marking this for Xdebug 2.6dev as a new feature.
Ok, that's clear Derick.
Thanks for looking into this. I'm glad you've found the cause of this and a possible solution.
I'm looking forward to see if you managed to solve this as a new feature. Have yourself a great holiday season.
I have added a bug report for PhpStorm at https://youtrack.jetbrains.com/issue/WI-34403 - but already working on this on the Xdebug side.
I've implemented this on my side in Git, now it's up to PhpStorm to make use of this.
Again, thanks Derick for picking it up so quickly after you discovered the cause of this.
I hope JetBrains will take it as serious as you do. ;-)
|2016-06-10 09:15||aschwinw||New Issue|
|2016-06-10 10:16||derick||Note Added: 0003632|
|2016-06-10 10:16||derick||Assigned To||=> derick|
|2016-06-10 10:16||derick||Status||new => feedback|
|2016-06-10 12:45||aschwinw||File Added: xdebug.log|
|2016-06-10 12:45||aschwinw||File Added: spl_xdebug_fail.php|
|2016-06-10 12:46||aschwinw||Note Added: 0003633|
|2016-06-10 12:46||aschwinw||Status||feedback => assigned|
|2016-06-24 20:50||aschwinw||Tag Attached: getarraycopy|
|2016-06-24 20:50||aschwinw||Tag Attached: iterator|
|2016-06-24 20:50||aschwinw||Tag Attached: recursive array iterator|
|2016-06-24 20:50||aschwinw||Tag Attached: SPL|
|2016-06-24 20:50||aschwinw||Tag Attached: standard php library|
|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)|
|2016-12-04 16:05||derick||Status||assigned => acknowledged|
|2016-12-17 17:14||derick||Severity||crash => minor|
|2016-12-17 17:14||derick||Summary||Possible duplicate of 686 but still present => Problem with inspecting SPL objects|
|2016-12-18 01:24||derick||Status||acknowledged => assigned|
|2016-12-18 21:43||derick||Note Added: 0004081|
|2016-12-18 21:43||derick||Category||Usage problems (Wrong Results) => Feature/Change request|
|2016-12-18 21:43||derick||OS||OSX => *|
|2016-12-18 21:43||derick||OS Version||El Capitan => *|
|2016-12-18 21:43||derick||Platform||Mac => *|
|2016-12-18 21:43||derick||Target Version||=> 2.6.0dev|
|2016-12-19 07:21||aschwinw||Note Added: 0004082|
|2016-12-19 12:16||derick||Note Added: 0004087|
|2016-12-20 16:59||derick||Note Added: 0004093|
|2016-12-20 16:59||derick||Status||assigned => closed|
|2016-12-20 16:59||derick||Fixed in Version||=> 2.6.0dev|
|2016-12-20 16:59||derick||Summary||Problem with inspecting SPL objects => Implement DBGP's extended_properties to support names and values with \0|
|2016-12-21 07:53||aschwinw||Note Added: 0004094|
|2017-01-10 14:27||derick||Relationship added||has duplicate 0000924|
|2017-01-10 23:40||derick||Resolution||open => fixed|
|2017-12-02 15:57||derick||Fixed in Version||2.6.0dev => 2.6.0alpha1|
|2017-12-02 18:34||derick||Target Version||2.6.0dev => 2.6.0alpha1|
|2017-12-02 18:36||derick||Target Version||2.6.0alpha1 => 2.6.0|
|2020-03-12 16:43||derick||Category||Feature/Change request => Step Debugging|