Lando, xdebug - broken

If you are using lando and xdebug, you need to make sure that your docker-php-ext-install all go through (https://docs.lando.dev/guides/installing-php-extensions-on-lando.html#_…), otherwise xdebug might not be installed properly, after that also make sure xdebug setting is set to true.  Take a note that new lando versions use xdebug 3 https://github.com/lando/lando/issues/2718
and with that you need to have specific settings for it

xdebug.mode = debug
xdebug.client_host = ${LANDO_HOST_IP}
xdebug.start_with_request = trigger

which should be in your .vscode/php.ini folder and then run under your app like this.

services:
  appserver:
    build_as_root:
      - apt-get update -y
      - docker-php-ext-install sockets
      - docker-php-ext-enable sockets
    build:
      - composer install
    config:
      php: .vscode/php.ini

and in the end new xDebug is running on port 9003 by default, so change that also in above php.ini or set your vscode or phpstorm to that port.

With all that it should work.