Skip to content

Commit

Permalink
[8.x] Server command: Allow xdebug auto-connect to listener feature (#…
Browse files Browse the repository at this point in the history
…40673)

* Pass PHP_IDE_CONFIG / XDEBUG_SESSION to allow remote xdebug

* Update ServeCommand.php

Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
pionl and taylorotwell authored Jan 27, 2022
1 parent 0f31ca4 commit 5d5cdf0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Illuminate/Foundation/Console/ServeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit 5d5cdf0

Please sign in to comment.