From 7c8855b9cec1c81eee0490e050fee36a52c36e6f Mon Sep 17 00:00:00 2001 From: Alec Reynolds Date: Mon, 21 Oct 2024 11:15:00 -0700 Subject: [PATCH] lando/lando#2718: Explicitly set client_port to 9003. --- config/php.ini | 2 ++ examples/xdebug/README.md | 3 +++ 2 files changed, 5 insertions(+) diff --git a/config/php.ini b/config/php.ini index 8e75700..22e51f2 100644 --- a/config/php.ini +++ b/config/php.ini @@ -30,6 +30,8 @@ xdebug.max_nesting_level = 512 xdebug.remote_autostart = 1 xdebug.start_with_request = trigger xdebug.mode = ${XDEBUG_MODE} +xdebug.client_port = 9003 +xdebug.ide_key = docker ; Globals expose_php = on diff --git a/examples/xdebug/README.md b/examples/xdebug/README.md index 69b0562..8c0c314 100644 --- a/examples/xdebug/README.md +++ b/examples/xdebug/README.md @@ -34,6 +34,9 @@ lando exec xdebug3off -- php -m | grep xdebug || echo $? | grep 1 # Should use develop, debug if defined lando exec xdebug3 -- env | grep 'XDEBUG_MODE' | grep 'debug,develop' +# Should use client_port 9003 +lando exec xdebug3 -- php -i | grep xdebug.client_port | grep 9003 + # Should use xdebug version 3.0.4 if installed lando exec manual -- php --re xdebug | head -1 | grep "xdebug version 3.0.4" ```