I am trying to setup xdebug using larave sail with latest version, on my Ubuntu 20.04.3 LTS desktop,
php 8.1
laravel 9
Add below details to env
SAIL_XDEBUG_MODE=develop,debug
SAIL_XDEBUG_CONFIG="client_host=172.23.0.1"
but when i run sail debug migrate
, returns
Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: 172.23.0.1:9003 (through xdebug.client_host/xdebug.client_port)
When I tried finding IP, it change every time
docker inspect -f {{range.NetworkSettings.Networks}}{{.Gateway}}{{end}} <container-name>
return different IP like 172.25.0.1
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community