Php – Xdebug 3 – The setting ‘xdebug.remote_***’ has been renamed, see the upgrading guide

PHPphpstormxdebug

I just installed Xdebug v3.0.0beta1 on my OSX and tried to use it on PhpStorm 2020.1, but I get this :

Xdebug: [Config] The setting 'xdebug.remote_enable' has been renamed,
see the upgrading guide at
https://xdebug.org/docs/upgrade_guide#changed-xdebug.remote_enable
(See: https://xdebug.org/docs/errors#CFG-C-CHANGED) Xdebug: [Config]
The setting 'xdebug.remote_host' has been renamed, see the upgrading
guide at
https://xdebug.org/docs/upgrade_guide#changed-xdebug.remote_host (See:
https://xdebug.org/docs/errors#CFG-C-CHANGED) Xdebug: [Config] The
setting 'xdebug.remote_mode' has been renamed, see the upgrading guide
at https://xdebug.org/docs/upgrade_guide#changed-xdebug.remote_mode
(See: https://xdebug.org/docs/errors#CFG-C-CHANGED) Xdebug: [Config]
The setting 'xdebug.remote_port' has been renamed, see the upgrading
guide at
https://xdebug.org/docs/upgrade_guide#changed-xdebug.remote_port

And the links provided lead to nothing but an image with bugs.

My question is what are the right settings to set and where to actually change them since i have nothing about xdebug in my php.ini file.

Best Answer

PhpStorm 2020.3 supports XDebug3. There is a detailed upgrade guide on how to change your settings properly.

In my case (using Docker), I had to change the settings

from:

; v2.*

[Xdebug]
zend_extension=xdebug.so
xdebug.remote_enable=1
xdebug.remote_autostart=1
xdebug.remote_connect_back=off
xdebug.remote_host=host.docker.internal

;# 9000 is default (not required to set).
xdebug.remote_port=9000

to:

; v3.*

[Xdebug]
zend_extension=xdebug.so
xdebug.mode=debug
xdebug.start_with_request=yes
xdebug.client_host=host.docker.internal

;# 9003 is now the default (set this for old PhpStorm settings).
xdebug.client_port=9000
Related Topic