From 702903ece41e24d66d014fd3fc479b0b0821be74 Mon Sep 17 00:00:00 2001 From: Rolando Date: Fri, 18 Jul 2025 10:44:53 -0400 Subject: [PATCH 1/2] Update lando-phpstorm.md --- docs/guides/lando-phpstorm.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/lando-phpstorm.md b/docs/guides/lando-phpstorm.md index 1ac2ce665..bd42df55a 100644 --- a/docs/guides/lando-phpstorm.md +++ b/docs/guides/lando-phpstorm.md @@ -61,7 +61,7 @@ Out of the box, PhpStorm is already configured to connect to Xdebug. You shouldn ## Debugging CLI Commands By 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. 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 +PhpStorm or a similar IDE, you will need to set two additional environment variables `PHP_IDE_CONFIG` + `XDEBUG_SESSION` and configure the path mapping in your IDE accordingly. ```yaml @@ -71,7 +71,7 @@ services: environment: # Support debugging CLI with Xdebug. PHP_IDE_CONFIG: "serverName=appserver" - XDEBUG_SESSION_START: lando + XDEBUG_SESSION: drush ``` You are free to assign any name to "serverName" as long as it matches the server you define in the IDE settings. From 5963a7dc3378a7849891cf6695e2c5b03a250713 Mon Sep 17 00:00:00 2001 From: Rolando Date: Wed, 23 Jul 2025 13:04:07 -0400 Subject: [PATCH 2/2] Update lando-phpstorm.md --- docs/guides/lando-phpstorm.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/guides/lando-phpstorm.md b/docs/guides/lando-phpstorm.md index bd42df55a..af772baee 100644 --- a/docs/guides/lando-phpstorm.md +++ b/docs/guides/lando-phpstorm.md @@ -61,7 +61,7 @@ Out of the box, PhpStorm is already configured to connect to Xdebug. You shouldn ## Debugging CLI Commands By 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. 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` and configure the +PhpStorm or a similar IDE, you will need to set three additional environment variables `PHP_IDE_CONFIG` + `XDEBUG_SESSION` + `DRUSH_ALLOW_XDEBUG` and configure the path mapping in your IDE accordingly. ```yaml @@ -71,7 +71,8 @@ services: environment: # Support debugging CLI with Xdebug. PHP_IDE_CONFIG: "serverName=appserver" - XDEBUG_SESSION: drush + XDEBUG_SESSION: 1 + DRUSH_ALLOW_XDEBUG: 1 ``` You are free to assign any name to "serverName" as long as it matches the server you define in the IDE settings.