For this tutorial i will be using, which is what we use, replace any instance of this in the tutorial with the domain you use.Īdd it into your main server block and also into the PHP block. If you don’t have this set up already, add it in to your nf. nginx needs to be able to respond with the correct SERVER_NAME. ![]() So to begin with, you need to make sure that nginx is set up properly. Parts of it worked for my set-up, but not all of it. Your IDE should be now correctly configured. Now configure it like this: Make sure you associate it with the previously created 'server' definition. I asked for some help to get this set up and Leo pointed me to a tutorial he wrote back in January. On the top right, click on 'edit configurations': Click in the green 'plus' sign at the top left and select 'PHP Remote Debug' from the list. We’re using docker (+ compose) to develop locally, and from what i’ve read it’s a bit of a nightmare to set things up. xdebug allow xdebug connecting to the listening client (in our case, PHPStorm) xdebug.remoteenable1 this special hostname means our host machine, it allows you to address the host machine from inside of the container. But if you’re in a loop somewhere and want to find out what’s happening, it’s not really much help at all. Don’t get me wrong, dd() is useful, sometimes quicker to use too. Xdebug with PHPstorm + docker + macOS (+ linux + windows) Click the little plus at the top and create a new configuration, user PHP remote Debug add a server. ![]() In PHPStorm, go to File -> Settings -> Languages and Frameworks -> PHP > Debug. After a while you get sick of making changes to your code, adding some dd()’s in there and re-running your request. The first thing you should do is to check your Debug settings. Over the last two weeks i have been working on a tricky bug, related to timezones and recurring bookings.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |