I assume you're using Drupal 8 recipe and Linux as a host OS. Also, xdebug 3.x is assumed, which is standard for Lando-provided PHP image.
Set up Lando
Example .lando.yml
file can look like this:
name: xdebug-test
recipe: drupal8
config:
webroot: web