我无法让xdebug在远程VPS上的docker中工作。这甚至可能吗?我已经尝试了几乎所有可能的值组合,但似乎没有任何效果。
我想在docker容器中远程调试PHP应用程序,更具体地说是Laradock。我的配置有问题吗?
为了记录,我还打开防火墙,看看问题是否存在,PhpStorm也在监听连接,但是唉。任何帮助将不胜感激......如果我需要提供更多信息,我很乐意这样做。
### 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