[solved] How to setup xdebug and phpstorm

hello, all! I can confirm that using the xdebug.remote_host={{ host ip address }} works for xdebug. after a few hours tryng every possible combination this is what started working :slight_smile:

For what it’s worth, here’s how I finally got my setup working with Docker for Windows (Hyper-V):

  • In a Windows command-line, run “ipconfig” and look for the IP4 address in “DockerNAT” entry. 192.168.246.1 in my case
  • Set “xdebug.remote_host=192.168.246.1” in xdebug.ini file
  • Do NOT set “xdebug.remote_connect_back” (or you could explicitly set “xdebug.remote_connect_back=0”)

That last step is what drove me crazy for a few days. I had remote_connect_back=1 set from a previous build. I thought that setting “remote_host=xxxxx” would override connect_back, so I didn’t think to turn it off. It even worked for the Docker Toolbox version.

1 Like

@snelg

That worked for me as well on Docker 1.13.

I had the ip: 10.0.75.1

Thanks!

Here are some more general instructions regardless of Docker (Linux, Windows, Mac, Toolbox):

https://devilbox.readthedocs.io/en/latest/intermediate/configure-php-xdebug.html