Xdebug is an essential tool in my developing process. Most often I use it for Step Debugging code invoked from a request or CLI. With the release of Xdebug 3.0 the configuration settings changed and need adjustment in the php.ini and in my case the environment variables as well.

In this post I am recording what needed to be changed in upgrading Xdebug. For a complete description on what changed, have a look at Upgrading from Xdebug 2 to 3.

Current configuration for Xdebug 2.9

[Xdebug]
zend_extension = "php_xdebug-2.9.6-7.4-vc15-x86_64.dll"
xdebug.remote_enable = 1
xdebug.remote_host = localhost
xdebug.remote_port = 9000

Environment variables

XDEBUG_CONFIG=1

New configuration for Xdebug 3.0

[Xdebug]
zend_extension = "php_xdebug-3.0.0-7.4-vc15-x86_64.dll"
xdebug.mode=debug
xdebug.start_with_request=yes

Environment variables

XDEBUG_SESSION=xdebug_is_great

Sponsoring

If Xdebug has helped you, you may want to consider sponsoring Derick.