drupal
drupal copied to clipboard
with php 8 xdebug dosnt work even if it is enabled in .lando.yml file.
##Steps to reproduce:
- Create a new drupal 9 recipe using
lando init
command. - Update .lando.yml file to use php8 and enable xdebug as shown below in config
config:
webroot: docroot
php: '8.0'
xdebug: debug
- Now ssh on to the lando container, and check for php version
php --version
#Expected Output of the above command: The above command should output php version with details of xdebug version/
#Actual output we get :
PHP 8.0.23 (cli) (built: Sep 1 2022 22:06:18) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.23, Copyright (c) Zend Technologies
with Zend OPcache v8.0.23, Copyright (c), by Zend Technologies
If I rebuild the container php7.4 xdebug gets installed and the output is as below:
PHP 7.4.30 (cli) (built: Aug 23 2022 15:23:34) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.30, Copyright (c), by Zend Technologies
with Xdebug v3.1.5, Copyright (c) 2002-2022, by Derick Rethans
As Drupal 9 and above support and requires php 8, I am unable debug code using xdebug if I am using php8.