When I try to debug Drupal 8 (8.6.11) using Xdebug in VS Code (I'm on Win 10 but I doubt it is relevant in this case) I get the following error:
Exception has occurred. Dotenv\Exception\InvalidPathException: Unable to read the environment file at /app/.env.
The problem is either with VS Code or with Drupal as someone has reported exact same behaviour on High Sierra and they were using Drupal 8.6.10: https://github.com/lando/lando/issues/1501
I did not find anything in drupal docs about the neccessity of creating a .env file to use Xdebug, so I suspect a bug eihter in Drupal 8 or VS Code.
Has someone encountered similar behaviour? Should I file a bug report on Drupal site?