- Introduction
- Requirements
- Recommended modules
If you've installed PHP using homebrew, the standard port 9003 might be unavailable, so this guide uses port 9002 instead.
- Make sure your enabled xdebug with
lando xdebug debug,develop, off
based on https://xdebug.org/docs/all_settings#mode. - file with the lines:
.lando/xdebug.sh
&php: .lando/php.ini
- In the custom php.ini, make sure
xdebug.start_with_request = yes
- Set the debug port to 9003 in Phpstorm
- Enable the debug plugin for Chrome (click the green bug icon)
- Click the telephone icon in PhpStorm ("Start listening for PHP Debug connections")
- Set a breakpoint in index.php
- Start the website in Chrome
- The first time, Phpstorm will display a dialog entitled "Incoming Connection from Xdebug"
- Accept the connection
- PhpStorm will break on the line.
- To disable xdebug runs
lando xdebug off
- Configuration
- Troubleshooting
- FAQ
- Maintainers