I've installed Laravel (Framework version 6.18.1) on my local setup using the Laravel installer. I use Docker with Devilbox and Xdebug enabled. The problem I run into is that everytime a page renders a PHP error, I get a 503 error in my browser (instead of an Xdebug error or Laravel error page). When I run artisan functions that cause a php error, I get memory errors in the console. As soon as I disable Xdebug, I get the usual Laravel errors. I'd like to use Laravel with Xdebug enabled, but I can't figure out why the two won't play nice together. I have searched for solutions but it seems I'm the only one. The strange this is that I've also tried it in another computer with a similar setup (Docker+Devilbox) and I run into the same problem.
Does anybody know why Xdebug and Laravel won't co-exist on my system and how I can fix it?