Config XDebug for Laravel 9

Jonathan Zarate - Feb 15 '22 - - Dev Community

Hey there!

In this post, we are going to configure XDebug for test coverage in Laravel Framework v9.

First, go to xdebug wizard https://xdebug.org/wizard, copy your phpinfo() and paste into the wizard, follow the instructions.

To enable test coverage you must edit the php.ini file, then add the following line:



xdebug.mode = coverage


Enter fullscreen mode Exit fullscreen mode

Finally, execute:



php artisan test --coverage


Enter fullscreen mode Exit fullscreen mode

Enjoy it!

. . . . .
Terabox Video Player