Debuging Laravel Sail Projects

  1. Add to .env:

     SAIL_XDEBUG_MODE=develop,debug,coverage
    
  2. Restart sail up.

  3. In PHPStorm, add mapping in Settings → PHP → Servers → 0.0.0.0 to /var/www/html.