DEV Community

Cover image for Config XDebug for Laravel 9
Jonathan Zarate
Jonathan Zarate

Posted on

3 2

Config XDebug for Laravel 9

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!

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay