Hi, seravo/wordpress:development
docker image ships with xdebug v3 but configuration (/etc/php/7.4/fpm/conf.d/20-xdebug.ini
) is still for v2.
This fixes remote step debugging in v3:
docker-compose exec --user vagrant wordpress bash
sudo nano /etc/php/7.4/fpm/conf.d/20-xdebug.ini
# Append these to end of file
xdebug.mode=develop,debug
xdebug.client_host=host.docker.internal
xdebug.start_with_request=yes
xdebug.log=/data/log/xdebug.log
wp-restart-php