Support the ongoing development of Laravel.io →
posted 3 years ago

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

Last updated by @thomaspaulson 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.