I'm trying to configure Xdebug with PhpStorm and Laradock.
I started with this: https://laradock.io/documentation/#install-xdebug
I can see that Xdebug is working:
php-fpm/xdebug status
with Xdebug v2.9.6, Copyright (c) 2002-2020, by Derick Rethans
I added a breakpoint and the debugger is not stopping.
Can anyone see what I am doing wrong?
My project is in /code/test which is /var/www on the server.
Laradock is in /code/laradock
UPDATE: Xdebug log shows:
[6] Log opened at 2020-07-10 10:44:55
[6] I: Connecting to configured address/port: host.docker.internal:9000.
[6] E: Time-out connecting to client (Waited: 200 ms). :-(
[6] Log closed at 2020-07-10 10:44:55
Update:
changed ini to this (and port in IDE):
xdebug.remote_host=192.168.68.101
xdebug.remote_connect_back=0
xdebug.remote_port=9001
[6] Log opened at 2020-07-10 12:11:03
[6] I: Connecting to configured address/port: 192.168.68.101:9001.
[6] E: Time-out connecting to client (Waited: 200 ms). :-(
[6] Log closed at 2020-07-10 12:11:04






/var/www/testpath to both local project root and a subfolder... That's obviously wrong. 2) Show your Xdebug settings (phpinfo()output captured in the same way you are trying to debug it: be it browser or a CLI -- it's important as it may have separate php.ini fo CLI and web server -- I'm not using Laradoc myself so not sure on this). The issue must be in using default TCP 9000 port -- php-fpm also uses that port by default. Enable and collect Xdebug log -- it will tell you where it tries to connect (if it tries that at all).host.docker.internaldoes not work on Linux (only on Windows and Mac). github.com/docker/for-linux/issues/264 You need to use some workarounds to detect correct IP address