It turns out that the "" hostname is not supported in Docker Toolbox. Managed to convince myself that treating the Virtualbox like a remote machine seemed sensible enough, glad to hear that's not the case :-)īTW, before you spend more time with this: I confirm your experience. I've always used the "Zero-configuration" method in the past but after that didn't work I thought it might be something to do with having to run Docker via Virtualbox. What you're doing here is the equivalent of debugging php on a remote machine. Note that you should not have to do any configuration of your local (host) php interpreter, and PHPStorm does not need to know anything about docker. Version and configuration information (please complete the following information): The Docker server is set up to connect to the Docker default machine that is started when I open the Docker Quickstart Terminal. I’ve had a look at my PHPStorm settings to change the CLI interpreter to php 7.2 but the Docker server that it finds php 7.1 When I run the php script through PHPStorm it is running through the Docker PHP_DEFAULT_VERSION: My ddev site is using the DDEV_PHP_VERSION, when I access the URL in the web browser and check out phpinfo, I can see that it is using PHP 7.2.12 "NGINX_SITE_VARS=$WEBSERVER_DOCROOT,$NGINX_DOCROOT", "COMPOSER_CACHE_DIR=/mnt/composer_cache", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", Running docker inspect ddev-bit-website-web I can see that: Turn on listening in PHPStorm, add a breakpoint and the script pauses when I access my Reload the page, PHPStorm doesn't point.Create a test script, add a breakpoint in PHPStorm.Website is now accessible in the browser. (Maybe not but I don’t have any better ideas what might be stopping it from listening!) I feel like if I can get PHPStorm to listen to ddev’s php 7.2 instead of Docker’s php 7.1 then xdebug will start working. (I think this is what's causing xdebug not to work, if I'm completely off base please let me know). The part I’m struggling with is getting PHPStorm to listen to the correct version of PHP. I’ve got the website running locally through ddev, that all works fine. I’m trying to set up xdebug with PHPStorm and ddev on Windows 10 home using Docker Toolbox.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |