Hey, sometimes I post new content, so if you want to stay up to date sign up for my newsletter. The URL to validation script contains something different from localhost, but the xdebug.remote_host value is not set and so is using the default value of localhost, or is set to localhost or 127.0.0.1. The PHPStorm docs of course! Wayyyyy at the bottom of this page it’s plainly stated: Remote host is configured as ‘localhost’ despite server host is probably not local So how’d I figure out this was the reason for Xdebug throwing up? Apparently this was enough for PHPStorm to freak out and just not run Xdebug. Why? Welp, localhost is pointing to an invalid folder location, according to MAMP. Unfortunately, for some reason, this Monday morning, setting this value to localhost no longer worked. It normally is, if you copy-pasta some of the tutorials on the internet. Xdebug is a server-side tool, and it’s installed automatically in the container so you don’t have to install or configure it on your workstation. So, it appears that for PHPStorm to pick up Xdebug correctly, the xdebug.remote_host variable needs to be set correctly. I’ve talked about this combination causing me issues in the past, but this is a whole new situation that killed a couple hours for me. You can take a look there or run prepared sources directly. Just came across another fun quirk with running Xdebug, MAMP and PHPStorm together. Stack & Skills PHP 8.1.8 xDebug 3.1.6 Docker + Compose 3.6 PHP Storm 2022.2.3 Playground This article is a continuation of previous post, where has been shown how to add xDebug config to existing project in Docker. Click the + button to add a server and fill Name. I’m mostly logging this here for my own benefit, but if the Google gods brought your here, sweet! Then you open up your PhpStorm project and go to your File -> Settings -> PHP -> Servers. Written by Peter Tasker Open source developer in Ottawa Ontario, Canada You should follow him on Twitter PHPStorm, MAMP and Xdebug - How to keep (some of) your hair
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |