This snippet is for a decoupled system divided in some folders, something like:
/root_project/
|
|_/backend_folder/
|_____/frontend_folder/
And so, you need debug your Drupal backend folder using xdebug from Lando and VSCode as IDE.
Can require restart the Lando system and rebuild the containers when you change versions or ports. Use:
$ lando stop && lando poweroff && lando start
In the last versions > 3.0 is using port 9003.