![]() In my case, it didn’t matter if the Xdebug helper is set to debugging or disabled at this point. If no server for your project exists (it might be called “appserver”), then enable PhpStorm to listen for Xdebug connections, load a page from your local site in your browser and PhpStorm will prompt you to accept the incoming connection. Then, go to Preferences > Languages & Frameworks > PHP > Servers Unless your username is also "michael", you'll want to update the path. If you're using the standard "Drupal8" recipe, then it would be: /Users/michael/.lando/services/config/drupal8. On my machine it is: /Users/michael/.lando/services/config/pantheon. ![]() Open Preferences > Languages & Frameworks > PHP, click the "+" button at the bottom of the list, and manually type in the name of the folder of the Lando recipe you're using. The first step is to add the Lando recipe folder as an "Include path" in your PhpStorm project. Admittedly, I don't fully understand the details of some of the configuration necessary in PhpStorm to get debugging working, but I can confirm that following these steps, it has worked every time for me so far. If you're concerned, then you may want to perform a "lando db-export" prior to rebuilding. In my experience, I haven't had any issues with losing my database. The documentation page for the "rebuild" command includes a caution about how there's no guarantee that data will persist between rebuilds. Once added, you'll need to perform a "lando rebuild" - this will rebuild your environment based on your. lando.yml file is defining a custom appserver service, then you should be able to just add the "xdebug: true" bit to the appserver definition. The first step is to enable Xdebug in Lando - this is easily done by modifying the local site's. Also - my local site is based on the standard Drupal project composer template (with a nested docroot). In this example, my local site is using the Lando "Pantheon" recipe, but as you'll see in a bit, any recipe can be used. This tutorial assumes that you have a local Drupal site up-and-running in Lando and set up as a project in PhpStorm. Google Chrome with the Xdebug helper extension.This process described below is largely based on a comment in an issue thread in the Lando issue queue by David Hunt - thanks, David! ![]() As part of my evaluation of Lando, I decided to figure out how to set up local PHP debugging with Xdebug and PhpStorm on Mac OS X. One of the necessary skills for a professional Drupal developer (one who codes either modules or themes) is to be able run a solid debugging tool. Second, I'm trying to figure out what is the most ideal local development environment for students of both our 12-week Drupal Career Online class (starts March 19) and our 6-week Mastering Professional Drupal Development Workflows with Pantheon (starts February 26) courses. First, as my "daily driver" for consulting work - I've been a long-time MAMP Pro user and I've been feeling for a long time that I need to modernize my local development tools. Over the past few months, I've been test-driving various Docker-based local development environments with two goals in mind.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |