Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

n2fole00's avatar

n2fole00 started a new conversation+100 XP

5mos ago

Hi, I can't get xdebug working on Sail. I've followed the steps in the Laravel Sail docs and also tried this article https://iwasherefirst2.medium.com/how-to-set-up-xdebug-with-laravel-sail-a-complete-guide-98d6498b382a

My launch.json is

I'm running Laravel 12 and VSCode on Linux. I have other projects that run non-Sail docker setups with xdebug working, but for some reason I'm doing something wrong with Sail.

Am I missing anything? Thanks.