#Path Mappings for PHPStorm and Laravel Xdebug

7 messages · Page 1 of 1 (latest)

leaden parrot
#

Need help on path mappings, I cannot get a breakpoint other than server.php to hit

normal star
#

Can't help you without knowing your environment. But like the notification says, go to the Servers settings and look at the path mappings for the server called 0.0.0.0

#

You only need to map the project root folder on you host machine to the project folder in the server. It's usually /var/www/html but it depends on how the server is set up.

leaden parrot
#

I am on a WSL/docker setup on windows. That's exactly how I have it too. I mapped my project root to /var/ww/html 😐

#

Will give it another try. Thank you @normal star

normal star
#

I don't remember if it's necessary in order to debug, but you should also set the default PHP interpreter (PHP settings) to your Docker container.

leaden parrot
#

Thanks for pointing me the right direction! I had all of that setup except for adding my project root to the compiler settings