In order to debug any Drush/Symfony or CLI command using Xdebug with PhpStorm or a similar IDE, you will need to set two additional environment variables PHP_IDE_CONFIG + XDEBUG_SESSION_START and configure the path mapping in your IDE accordingly. Lando mounts your project root to /app in the application server, so you might map something like /users/myname/myproject/ to /app.īy default, our Drupal recipes come with Drush out of the box and also the Symfony recipe has a console tooling, which can be debugged with the following config. It may also ask you to map the application server file paths to the paths on your host machine. PhpStorm should now automatically open the Debug window and produce debug output if a breakpoint is reached. Select "Debug" from the menu to tell your browser to send the appropriate parameters to Xdebug so that Xdebug activates when a request is made. In your browser, navigate to your Lando app's URL and click the "beetle" icon that the Xdebug helper added to your address bar.Add a debug breakpoint to a line in your code by clicking the line number.The button will look like a beetle (or a phone in the classic UI). Find the "Listen for PHP Debug Connections" button in your PhpStorm toolbar and click it to start listening for connections. For Firefox, use the Xdebug Helper for Firefox open in new window add-on. In the Settings panel, expand and locate the Languages & Frameworks > PHP > Servers section. For Chrome-based browsers, use the Xdebug helper open in new window extension. In your PhpStorm project, open the Settings panel. Install the Xdebug helper extention for your browser.You shouldn't need to change anything, though you may refine settings to meet your needs in PhpStorm's Settings under Languages and frameworks > PHP > Debug. Out of the box, PhpStorm is already configured to connect to Xdebug. Lando in Corporate Network Environments.How do I set the timezone of a Lando service?.Accessing Lando from Other Devices on Your Local Network.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |