Search code examples
dockerphpstormxdebugboot2docker

XDebug: Windows + Docker + PHPStorm


My OS is Windows 10. I've run Docker via the boot2docker image. IDE I use is PHPStorm. What I want to do is debug with XDebug, but I don't get it running. I searched the Web and tried the examples I found but nothing helps. Is there anyone with the same architecture who can help me?

Edit: Nginx ist running on the server.

Current setup: xdebug.ini

zend_extension=xdebug.so
xdebug.remote_enable=1
xdebug.remote_autostart=0
xdebug.remote_connect_back=1
xdebug.remote_port=9000
xdebug.idekey=PhpStorm

PhpStorm server Host is same IP I connect for SSH. Path mappings is enabled. Debugger is Xdebug I tried already with a specific DBPg Proxy but no success


Solution

  • I got it. I just forgot to forward the port. I've to run the container via docker run -d -p 80:80 -p 9000:9000 -v /mnt/www/foo:/var/www/foo foo.