Setup Xdebug in Laravel 8 like a boss

Marcus Christiansen
4 min readMar 3, 2021

I’m finally here after many frustrating hours of back and forth, trying different things in order to get Xdebug to play nicely with the latest instalment (8 as of this writing) of everyone’s favourite PHP framework, Laravel, setup with Sail. And so, without further ado, here we go.

For this tutorial make sure you have Docker Desktop installed. We’re also using PHPStorm as our IDE of choice.

--

--