From 48c50f0da612ea84641c41531c2de8b739f8a982 Mon Sep 17 00:00:00 2001 From: Martin Kluska Date: Thu, 27 Jan 2022 13:58:04 +0100 Subject: [PATCH 1/2] Pass PHP_IDE_CONFIG / XDEBUG_SESSION to allow remote xdebug --- src/Illuminate/Foundation/Console/ServeCommand.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Illuminate/Foundation/Console/ServeCommand.php b/src/Illuminate/Foundation/Console/ServeCommand.php index 331b9dbcb7a6..f323ea136f85 100644 --- a/src/Illuminate/Foundation/Console/ServeCommand.php +++ b/src/Illuminate/Foundation/Console/ServeCommand.php @@ -106,6 +106,8 @@ protected function startProcess($hasEnvironment) 'PHP_CLI_SERVER_WORKERS', 'XDEBUG_CONFIG', 'XDEBUG_MODE', + 'PHP_IDE_CONFIG', + 'XDEBUG_SESSION', ]) ? [$key => $value] : [$key => false]; })->all()); From 106620a9d89a35aa62d1622a1cf03a4baf703eef Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 27 Jan 2022 11:45:35 -0600 Subject: [PATCH 2/2] Update ServeCommand.php --- src/Illuminate/Foundation/Console/ServeCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Foundation/Console/ServeCommand.php b/src/Illuminate/Foundation/Console/ServeCommand.php index f323ea136f85..7bdbf10e730f 100644 --- a/src/Illuminate/Foundation/Console/ServeCommand.php +++ b/src/Illuminate/Foundation/Console/ServeCommand.php @@ -104,9 +104,9 @@ protected function startProcess($hasEnvironment) 'APP_ENV', 'LARAVEL_SAIL', 'PHP_CLI_SERVER_WORKERS', + 'PHP_IDE_CONFIG', 'XDEBUG_CONFIG', 'XDEBUG_MODE', - 'PHP_IDE_CONFIG', 'XDEBUG_SESSION', ]) ? [$key => $value] : [$key => false]; })->all());