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 |
| Reporter | aschwinw | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | * | OS | * | OS Version | * |
| Product Version | 2.4.0 | ||||
| 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 | ||||
| Description | 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 | ||||
| Operating System | |||||
| PHP Version | 7.0.5-7.0.9 | ||||
|
|
Can you provide all the information as is described at: https://xdebug.org/support.php#remote ? |
|
|
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: <code> 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. ;-) |