[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: jit
.yes
.-dxdebug.remote_mode=jit
(for Xdebug 2) or -dxdebug.start_upon_error=yes
(for Xdebug 3) directive as an additional configuration option:xdebug.remote_mode
in the Configuration directive field and jit
in the Value field.xdebug.start_upon_error
in the Configuration directive field and yes
in the Value field.-dxdebug.remote_mode=jit
(for Xdebug 2) or -dxdebug.start_upon_error=yes
(for Xdebug 3).[xdebug]
section. xdebug.remote_mode
from the default req
to jit
.xdebug.start_upon_error
from the default default
to yes
.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.mode
and client_host
Xdebug parameters.xdebug.client_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.client_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.xdebug.client_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.