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

toto5931's avatar

Sail - How to debug in VSCode?

My laravel project is served by Docker, with Laravel Sail.

How can I debug it in VScode?

My set up: windows with Docker desktop as explained here https://laravel.com/docs/8.x#getting-started-on-windows

I have no particular knowledge of Linux and Docker

Thanks for you help

0 likes
7 replies
toto5931's avatar

I want to debug my PHP code in laravel, using Xdebug

toto5931's avatar

Thank you but this explains how to run Xdebug with php on your own machine. As I am using sail, php is running in a docker container. Sail is done for people like me who does not know anything about docker and linux but it is a shame that it does not allow to use the VScode debugger easily Do you have any solution / tutorial to help me ? Thanks

Please or to participate in this conversation.