Closed joshembling closed 1 month ago
Should say I got this to work by doing the following:
brew install php
- even though PHP comes out of the box with Herd, it's necessary for the next step pecl install xdebug
Build process completed successfully
Installing '/opt/homebrew/Cellar/php/8.3.8/pecl/20230831/xdebug.so'
install ok: channel://pecl.php.net/xdebug-3.3.2
Extension xdebug enabled in php.ini
[xdebug]
zend_extension="/opt/homebrew/Cellar/php/8.3.8/pecl/20230831/xdebug.so" <---- double check this
xdebug.mode=develop,debug,coverage
Hope this helps someone!
You can also use the herd coverage
command :)
Platform
macOS
Operating system version
macOS Sonoma 14.4
System architecture
ARM64 (M1, M2, etc)
Herd Version
1.8.0
PHP Version
8.2.20
Bug description
I have a Herd Pro subscription that comes with Xdebug out of the box.
When running
herd debug artisan test --coverage
, I'm always met with the following outputNo code coverage driver available
My php.ini file looks like this:
And my debug.ini file:
Steps to reproduce
herd debug artisan test --coverage
with the above settings in php.ini and debug.iniherd debug artisan test --coverage
Relevant log output
No response