How do I debug with Xdebug in Visual Studio Code?
InvalidPathException is an exception related to the vlucas/phpdotenv composer package so this issue isn't related to the Lando &amp; VS Code codebases; it's an issue with your Drupal code base. 

You can confirm phpdotenv is a Drupal dependency by looking at your composer.json file and looking at the require section.

The issue is the package dependency isn't finding the /app/.env file in your Lando environment. Confirm that the .env exists in your Lando project root (the same dir as your .lando.yml file).