[xdebug]
section in the php.ini file and update it as follows:zend_extension
, not zend_extension_ts
, zend_extension_debug
, or extension
. xdebug.idekey
setting and assign it a value of your choice. This value will be used to register your IDE on Xdebug proxy servers. phpinfo
output should contain the Xdebug section: phpinfo()
, and click Analyze my phpinfo() output. Learn more about checking the Xdebug installation in Validate the Configuration of a Debugging Engine. -Djava.net.preferIPv4Stack=true
line. [xdebug]
section and comment the following line in it by adding ;
in preposition: req
. The mode is available both for debugging command-line scripts and for web server debugging. -dxdebug.remote_mode=jit
directive as an additional configuration option:-dxdebug.remote_mode
in the Configuration directive field and jit
in the Value field. -dxdebug.remote_mode=jit
. [xdebug]
section and change the value of the xdebug.remote_mode
from the default req
to jit
. remote_enable
and remote_host
Xdebug parameters. xdebug.remote_host
value should be replaced with the IP address of the machine where PhpStorm is running, which is accessible from the Docker container. If you are using Docker for Windows or Docker for Mac, you can set xdebug.remote_host
to host.docker.internal
, which automatically resolves to the internal address of the host, letting you easily connect to it from the container. xdebug.remote_host
value is 10.0.2.2
. This is the gateway used in the default Vagrant setup, which allows connecting from the instance to host where PhpStorm is running.