
You should add "zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20220829/xdebug.so" to php.ini Enable xdebug docker-php-ext-enable xdebug Check Xdebug is installed and running php -v Install ok: channel:///xdebug-3.2.0Ĭonfiguration option "php_ini" is not set to php.ini location Installing '/usr/local/lib/php/extensions/no-debug-non-zts-20220829/xdebug.so'


Start PHP 8 container and install Xdebug docker run -rm -it php:8 pecl install xdebug Upgrading will allow the benefit of Xdebug 3.2 but likely a host of other fixes and performance improvements as a by product. This would be the recommended option, if available. Install an earlier version of Xdebug i.e.As a result, trying to install this on a PHP version lower than this results in this error. Installing Xdebug on PHP7.4 returns an error stating "pecl/xdebug requires PHP (version >= 8.0.0, version = 8.0.0, version <= 8.2.99), installed version is 7.4.33Īt the time of writing, Xdebug 3.2 is the latest stable version and PECL will attempt to install this, however, Xdebug 3.2 requires at least PHP 8 or later.
