Reputation: 23
I can't catch any request with xdebug to my app.
xdebug.ini
zend_extension=xdebug.so
xdebug.remote_autostart = 1
xdebug.idekey=PHPSTORM
xdebug.remote_connect_back=1
xdebug.remote_enable=On
Upvotes: 0
Views: 171
Reputation: 23
fixed by sudo iptables -A INPUT -p tcp --dport 9000 -j ACCEPT
with following xdebug.ini config
xdebug.remote_autostart = 1
xdebug.idekey=PHPSTORM
xdebug.remote_connect_back=0
#172.17.0.1 is docker0 interface ip address (see ifconfig)
xdebug.remote_host=172.17.0.1
xdebug.remote_enable=On
xdebug.remote_port=9000
Upvotes: 0
Reputation: 36764
I see you've tagged this with "docker". If you use docker, you can't use xdebug.remote_connect_back=1
. You need to specify xdebug.remote_host=IP-address-of-the-machine-as-reachable-by-docker-where-your-IDE-runs
. This can be host.docker.internal
in newer versions.
In order to further debug networking issues, please also set xdebug.remote_log=/tmp/xdebug.log
in your php.ini
settings, and see what it says when you initiate a debugging session (through a browser extension).
Upvotes: 2