Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

with php 8 xdebug dosnt work even if it is enabled in .lando.yml file. #39

Open
Tdnshah opened this issue Oct 10, 2022 · 0 comments
Open

Comments

@Tdnshah
Copy link

Tdnshah commented Oct 10, 2022

##Steps to reproduce:

  1. Create a new drupal 9 recipe using lando init command.
  2. Update .lando.yml file to use php8 and enable xdebug as shown below in config
config:
  webroot: docroot
  php: '8.0'
  xdebug: debug
  1. 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.

@Tdnshah Tdnshah added the drupal label Oct 10, 2022
@rtfm-47 rtfm-47 transferred this issue from lando/lando Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants