Docker中的Xdebug在PhpStorm中不起作用

我无法让xdebug在远程VPS上的Docker中工作。 这甚至有可能吗? 我已经尝试了几乎所有可能的价值组合,但似乎没有任何工作。

我想远程debuggingDocker容器内的PHP应用程序,更具体地说,Laradock。 我的configuration有什么问题吗?

为了logging,我也打开了我的防火墙,看看问题是否存在,PhpStorm也在监听连接,但可惜。 任何帮助将不胜感激…如果我需要提供更多的信息,我会很乐意这样做。

PhpStorm错误 PhpStorm错误

docker集装箱 码头集装箱

PhpStorm设置 在这里输入图像说明

PhpStorm设置远程解释器 在这里输入图像说明

在容器运行xdebug Xdebug被加载

### Workspace Utilities Container ########################### workspace: build: context: ./workspace args: - INSTALL_XDEBUG=true - INSTALL_MONGO=false - INSTALL_NODE=true - INSTALL_YARN=false - INSTALL_DRUSH=false - INSTALL_AEROSPIKE_EXTENSION=false - INSTALL_V8JS_EXTENSION=false - COMPOSER_GLOBAL_INSTALL=false - INSTALL_WORKSPACE_SSH=true - INSTALL_LARAVEL_ENVOY=true - PUID=1000 - PGID=1000 - NODE_VERSION=stable - YARN_VERSION=latest - TZ=CET volumes_from: - applications extra_hosts: # IMPORTANT: Replace with your Docker Host IP (will be appended to - "dockerhost:192.168.128.3" ports: - "2222:22" tty: true ### PHP-FPM Container ####################################### php-fpm: build: context: ./php-fpm args: - INSTALL_XDEBUG=true - INSTALL_SOAP=true - INSTALL_MONGO=false - INSTALL_ZIP_ARCHIVE=true - INSTALL_BCMATH=false - INSTALL_MEMCACHED=false - INSTALL_OPCACHE=true - INSTALL_AEROSPIKE_EXTENSION=true - CODEIGNITER=false dockerfile: Dockerfile-70 volumes_from: - applications expose: - "9000" links: - workspace extra_hosts: # IMPORTANT: Replace with your Docker Host IP (will be appended to - "dockerhost:192.168.128.3" environment: # IMPORTANT: Set the Remote Interpreter entry matching name to laravel - PHP_IDE_CONFIG=serverName=laravel