Is is possible to have the same configs in console and browser via SAIL_XDEBUG_MODE ? Here are screenshots from what I see in the command line:Īs it can be seen in the attached screenshots, in console is used the XDEBUG_MODE env var, while in browser is used xdebug.mode. I have seen that running php -i in container returns different configs for Xdebug comparing to what we see in phpinfo() from browser even if the Configuration file is the same one. However, the debugging is not working in PhpStorm even if it is set to listen for incoming connections. I am using Laravel Sail for running the project inside a container and everything seems to work except the debugging part.Īccording to Laravel docs we can set SAIL_XDEBUG_MODE to enable the debug mode. I hope this info helps someone else get this all working.I have started to play with my first Laravel project on a MacOS. In this case, you can get the host ip address by running the following command: docker inspect -f env file: SAIL_XDEBUG_CONFIG="client_host=" If you're on linux, you also need to add this to your. Or, if you want the develop mode as well you can add: SAIL_XDEBUG_MODE=develop,debug If you're on Windows/WSL2 all you need to do is add the following line(s) to your. env vars that you can use to change how XDebug works with Sail. Thank you to github user nhaynes for all of this. See for a brief discussion on these changes. Here's my interpretation (please correct me if I'm wrong).Īs of August, 2021, Laravel Sail now comes with the docker containers configured correctly for XDebug. I do seem to have xdebug running correctly on the server, but despite spending the day reading posts on how to make this happen I just can’t get phostorm to connect to xdebug.ĭoes anyone have step by step instructions on how to do this? It seems like this would be a good thing to have here or in the Sail documentation. I’m rather new to Laravel I’m loving it so far and making good progress on my project.īut, I’m having an awful time getting xdebug, sail, and phpstorm to play nice.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |