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

xDebug not being enabled though #279

Open
NathanHealea opened this issue Jun 11, 2024 · 3 comments
Open

xDebug not being enabled though #279

NathanHealea opened this issue Jun 11, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@NathanHealea
Copy link

Configuring xDebug in the .lando.yml file is not working.

When viewing the admin/reports/status/php, xdebug does not show up.

I've been following these walkthrough: https://docs.lando.dev/guides/lando-with-vscode.html

Here is .lando.yml file with sensitive information have been replaced with (...).

name: ...
recipe: pantheon
config:
  framework: drupal8
  site: ...
  id: ...
  xdebug: true

services:
  appserver:
    webroot: web
    xdebug: true

Im not sure if the docs are wrong, as this walkthrough was working prior to updates at the beginning my June, 2024.

@devin-purple
Copy link

devin-purple commented Jun 18, 2024

This just happened for me too after a system and lando update.

When trying to rebuild the container:

 ✔ Container purple_appserver_1  Started                                                                                                                                                       1.7s 
userperms 21:52:02.92 INFO  ==> Symlinked users .gitconfig.
userperms 21:52:02.93 INFO  ==> Symlinked users known_hosts
userperms 21:52:02.93 INFO  ==> This is a debian container
userperms 21:52:02.93 INFO  ==> user-perms.sh kicking off as user uid=0(root) gid=0(root) groups=0(root)
userperms 21:52:02.93 DEBUG ==> Lando ENVVARS set at
userperms 21:52:02.93 DEBUG ==> 
userperms 21:52:02.93 DEBUG ==> ========================================
userperms 21:52:02.93 DEBUG ==> LANDO_WEBROOT_USER      : www-data
userperms 21:52:02.93 DEBUG ==> LANDO_WEBROOT_GROUP     : www-data
userperms 21:52:02.93 DEBUG ==> LANDO_WEBROOT_UID       : 1000
userperms 21:52:02.93 DEBUG ==> LANDO_WEBROOT_GID       : 1000
userperms 21:52:02.93 DEBUG ==> LANDO_HOST_UID          : 1000
userperms 21:52:02.94 DEBUG ==> LANDO_HOST_GID          : 1000
userperms 21:52:02.94 DEBUG ==> ========================================
userperms 21:52:02.94 DEBUG ==> 
userperms 21:52:02.94 INFO  ==> Making sure correct user:group (www-data:www-data) exists...
userperms 21:52:02.95 INFO  ==> Remapping ownership to handle docker volume sharing...
userperms 21:52:02.95 INFO  ==> Resetting www-data:www-data from 1000:1000 to 1000:1000
userperms 21:52:02.97 INFO  ==> www-data:www-data is now running as uid=1000(www-data) gid=1000(www-data) groups=1000(www-data)!
userperms 21:52:02.97 INFO  ==> And here. we. go.
userperms 21:52:02.97 INFO  ==> Doing the permission sweep.
usage: /usr/local/bin/docker-php-ext-enable [options] module-name [module-name ...]
   ie: /usr/local/bin/docker-php-ext-enable gd mysqli
       /usr/local/bin/docker-php-ext-enable pdo pdo_mysql
       /usr/local/bin/docker-php-ext-enable --ini-name 0-apc.ini apcu apc

Possible values for module-name:
apcu.so bcmath.so bz2.so calendar.so exif.so gd.so gettext.so imagick.so imap.so intl.so ldap.so mbstring.so memcached.so mysqli.so oauth.so opcache.so pcntl.so pdo.so pdo_mysql.so pdo_pgsql.so redis.so soap.so sodium.so xdebug.so zip.so

Some of the above modules are already compiled into PHP; please check
the output of "php -i" to see which modules are already loaded.
ERROR ==> 

Seems like it is not installing the xdebug extension properly.

@devin-purple
Copy link

devin-purple commented Jun 18, 2024

It's possible this is an issue with docker-compose which is deprecated and removed in some OSes now and replaced with docker compose (plugin). Everything else worked except the command that Lando runs internally to execute docker-php-ext-enable

I had to rerun lando setup to install docker-compose v2.27.0

Fedora 40

@skyeinthecloud
Copy link

This is also happening for me with vscode & a Pantheon Drupal site. I can't trigger xdebug and the console says "Cannot evaluate code without a connection".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants