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" ```