View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001998 | Xdebug | Step Debugging | public | 2021-07-24 17:09 | 2021-10-04 09:32 |
| Reporter | agustingomes | Assigned To | |||
| Priority | low | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 3.1dev | ||||
| Target Version | 3.1dev | Fixed in Version | 3.1.0 | ||
| Summary | 0001998: Double facet attribute generated for enums that are stored in properties | ||||
| Description | The step debugging process seem to end up abruptly when the assignment of an enum is done inside a class. PHPStorm seems to receive an instruction to break the execution of the script, but continues immediately afterwards. This happens on the current master state of the branch: (https://github.com/xdebug/xdebug/commit/b1a26aef7b94374d44e0cfda6b283d8955a916a5) | ||||
| Steps To Reproduce | consider the following script:
Adding a breakpoint in the | ||||
| Additional Information | From the initial information I managed to collect, it seems the issue is in how the <property name="currency" fullname="$totalAmount->currency" facet="private" type="object" facet="enum" classname="Currency" children="1" numchildren="2"></property> | ||||
| Tags | Doesn't Break | ||||
| Operating System | Linux | ||||
| PHP Version | 8.1-dev | ||||
|
|
Thanks for this. I think that some XML parsers might stumble over this. Xdebug's DBGp Client or test framework does not, but I guess PhpStorm does. I'll go try it with PhpStorm (which seems to close the debugging connection), and then proceed with a fix. |
|
|
|
|
|
I've merged this in GIT now, and from my cursory testing with PhpStorm it now works. It'd be great if you could test it again too please. |
|
|
Hi Derick. I recompiled the Docker image with the latest master branch, and I can confirm the fix works. Thank you for looking into this so quickly. |