Open lamouf opened 4 years ago
Hi, in order to help you can you share a public GitHub repo with your code?
Hi, Thanks for you response. you will find the repo at : https://github.com/lamouf/laravel-xdebug.git
i added few images that can be helpful into readme.md. Thanks
@lamouf looks like it might be the quotes around the IP address:
# Your repo, docker-compose env will include the double quotes as part of the value.
PHP_XDEBUG_REMOTE_HOST="192.168.0.104"
# The correct configuration should be:
PHP_XDEBUG_REMOTE_HOST=192.168.0.104
You might also want to try this on Mac/Windows too:
PHP_XDEBUG_REMOTE_HOST=host.docker.internal
I am on a Mac, but looking at the Windows documentation, the host.docker.internal
should work.
Verified your repo works for me after adjusting that env value:
Here's a visual of debugging the remote host env value included quotes ("
) inside the app container:
Then after I adjusted them to work for me, here's the value without quotes as PHP INI would expect it:
I would also recommend setting PHP_XDEBUG_REMOTE_AUTOSTART=0
when you have schedulers and queues running, and use a browser extension to only start xdebug on the web application.
Great job Paul, Thanks a lot for your priceless help. i works like a charm !! Cheers.
Hi Paul, I followed the exact steps in the two videos dedicated to xdebug.
i downloaded the laravel starter zip
copied .docker.env.example as .docker.env and changed the ip address
copied .env.example as .env
created php remote debug configuration in phpstorm
installed debugger tool addon for browser (chrome)
ran a container with docker-compose up -d
Xdebug is not working in both mac and windows Please help.