Skip to content

heilop/drupal9-practice

Repository files navigation

CONTENTS OF THIS FILE

  • Introduction
  • Requirements
  • Recommended modules

Installation

Debugging with PhpStorm (or the tool of your choice)

If you've installed PHP using homebrew, the standard port 9003 might be unavailable, so this guide uses port 9002 instead.

  1. Make sure your enabled xdebug with lando xdebug debug,develop, off based on https://xdebug.org/docs/all_settings#mode.
  2. file with the lines: .lando/xdebug.sh & php: .lando/php.ini
  3. In the custom php.ini, make sure xdebug.start_with_request = yes
  4. Set the debug port to 9003 in Phpstorm
  5. Enable the debug plugin for Chrome (click the green bug icon)
  6. Click the telephone icon in PhpStorm ("Start listening for PHP Debug connections")
  7. Set a breakpoint in index.php
  8. Start the website in Chrome
  9. The first time, Phpstorm will display a dialog entitled "Incoming Connection from Xdebug"
  10. Accept the connection
  11. PhpStorm will break on the line.
  12. To disable xdebug runs lando xdebug off
  • Configuration
  • Troubleshooting
  • FAQ
  • Maintainers

About

A Drupal 9 using Lando

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors