Laravel Sail 10 + Xdebug + PhpStorm + Mac M1

835 Views Asked by At

I already have a project running on Laravel Sail 10.0 with roadrunner. I tried to configure Xdebug but I can't make it stop on my breakpoints. Every time I run sail up it PhpStorm create a new tab on debug section called Artisan an a lot of roadrunner-worker tabs

  • Laravel octane Sail 10.0 with roadrunner
  • Using PHP 8.2
  • Macbook Pro M1
  • PhpStorm 2022.2.5

.env

SAIL_XDEBUG_MODE=develop,debug
SAIL_XDEBUG_CONFIG="client_host=host.docker.internal client_port=9003 idekey=PHPSTORM"

PhpStorm Debug config:

enter image description here

PhpStorm Servers:

enter image description here

php.ini (maybe this is not necessary?)

enter image description here

PhpStorm debug tabs:

enter image description here

When I run sail test

Image when I run "sail test"

I tried several SAIL_XDEBUG_CONFIG

SAIL_XDEBUG_CONFIG=docker.for.mac.host.internal
SAIL_XDEBUG_CONFIG="client_host=172.30.0.1"
SAIL_XDEBUG_CONFIG="client_host=host.docker.internal client_port=9003 idekey=PHPSTORM"
SAIL_XDEBUG_CONFIG="client_host=docker.for.mac.host.internal client_port=9003 idekey=PHPSTORM"
SAIL_XDEBUG_CONFIG="client_host=docker.for.mac.host.internal remote_port=9003 remote_enable=1"
SAIL_XDEBUG_CONFIG="remote_host=host.docker.internal remote_port=9003 idekey=PHPSTORM"
SAIL_XDEBUG_CONFIG="remote_host=host.docker.internal remote_port=9003 idekey=PHPSTORM"
0

There are 0 best solutions below