XDebug 3 settings for debugging drush scripts in lando with PHPStorm

.lando.yml

config:
  xdebug: "debug,develop"

SSH into the lando box and run export XDEBUG_SESSION=drush. That will set up php commands to trigger xdebug and phpstorm will catch the connection.

 

Tags
Lando xdebug