The value "docker.for.mac.localhost" for xdebug.remote_host parameter is deprecated
DNS name host.docker.internal should be used for host resolution from containers. Older aliases (still valid) are deprecated in favor of this one. (See https://tools.ietf.org/html/draft-west-let-localhost-be-localhost-06).
New value to use is host.docker.internal