View Issue Details

IDProjectCategoryView StatusLast Update
0002160XdebugCode Coveragepublic2023-11-03 11:19
Reporteratanvardo Assigned Toderick  
Status confirmedResolutionopen 
Product Version3.2.0 
Target Version3.4dev 
Summary0002160: Path coverage data non collected from from generators

It seems that when code is executed through a generator the path coverage is not collected.

I've prepared an example showcasing the problem:

Running test with:
XDEBUG_MODE=coverage php -dopcache.enable=false vendor/bin/phpunit --coverage-html coverage --path-coverage

produces no path coverage data in the generator case, while line and branch data ara collected normally

Additional Information

PHP version is actually 8.2

Operating System
PHP Version8.2.0-8.2.9



2023-05-24 14:19

administrator   ~0006559

I can confirm this. Xdebug's path analysis does not understand generators yet. This is going to be a fairly mayor undertaking to address, so punting this out as a 'feature' for Xdebug 3.3.


2023-11-03 11:19

administrator   ~0006668

Sorry, I'm going to have to bump this to 3.4.

Issue History

Date Modified Username Field Change
2023-01-30 11:22 atanvardo New Issue
2023-01-30 11:22 atanvardo Tag Attached: coverage
2023-05-24 14:19 derick Assigned To => derick
2023-05-24 14:19 derick Status new => confirmed
2023-05-24 14:19 derick Note Added: 0006559
2023-05-24 14:20 derick Target Version => 3.3dev
2023-05-24 14:20 derick PHP Version 8.2-dev => 8.2.0-8.2.9
2023-11-03 11:19 derick Target Version 3.3dev => 3.4dev
2023-11-03 11:19 derick Note Added: 0006668