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

Ligonsker's avatar

Does anyone know how to make XDebug (v3) work with VSCode and Laravel in a Docker/Podman container?

Hi I am trying to make XDebug work with Laravel on VSCode. XDebug works for me on local development, but when I try to make it work on a Docker (or Podman) container, it will not work. Connection is succesful, but it won't stop on break points.

It might have something to do with pathMappings in the launch.json file but I'm not sure what to write there that will match my Dockerfile:

This is how I run the container:

docker run -d -p 8000:8000 -p 9003:9003 xdebug

What can I do to fix that if the XDebug logs show that everything is OK?

Thanks

0 likes
0 replies

Please or to participate in this conversation.