From 5d5cdf0388c3f01a32f56170d2cac1bce5b35b84 Mon Sep 17 00:00:00 2001 From: Martin Kluska Date: Thu, 27 Jan 2022 18:45:45 +0100 Subject: [PATCH] [8.x] Server command: Allow xdebug auto-connect to listener feature (#40673) * Pass PHP_IDE_CONFIG / XDEBUG_SESSION to allow remote xdebug * Update ServeCommand.php Co-authored-by: Taylor Otwell --- 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..7bdbf10e730f 100644 --- a/src/Illuminate/Foundation/Console/ServeCommand.php +++ b/src/Illuminate/Foundation/Console/ServeCommand.php @@ -104,8 +104,10 @@ protected function startProcess($hasEnvironment) 'APP_ENV', 'LARAVEL_SAIL', 'PHP_CLI_SERVER_WORKERS', + 'PHP_IDE_CONFIG', 'XDEBUG_CONFIG', 'XDEBUG_MODE', + 'XDEBUG_SESSION', ]) ? [$key => $value] : [$key => false]; })->all());