lando / pantheon

The Official Lando Pantheon plugin.
https://docs.lando.dev/pantheon
GNU General Public License v3.0
11 stars 18 forks source link

xdebug stops working after suspend #70

Closed mortona42 closed 2 years ago

mortona42 commented 6 years ago

Bug Report

I'm using PHPStorm and developing on Lando. Periodically, xdebug stops connecting to my IDE and I have to restart the Lando site. Enabling "break on first line" doesn't help until the server is restarted.

3.0.0-beta.22 on OSX Sierra

name: bjo recipe: pantheon config: framework: drupal8 env: dev site: bjo id: f764434e-9408-485c-913d-c0d97f667d74 xdebug: true

Xdebug works great with my configuration until I step away from it for a while. I keep my box on while working on a project, but it seems when I suspend my computer or don't use xdebug in a while, it requires restarting lando to reconnect.

mortona42 commented 6 years ago

I just suspended my computer and it's still working on resume, so I think it's more than that.

mortona42 commented 6 years ago

After suspending over night, my xdebug is no longer working. Breakpoints that were pausing execution yesterday are no longer breaking this morning.

After running lando restart, things start working again.

mortona42 commented 6 years ago

This time, It was working on the bus, but I closed my laptop for a few mins (less than 10) and it needed a lando restart to get working again in the office.

nterbogt commented 6 years ago

I have the same issue... but mine's not intermittent. I can get Xdebug working fine on a lando rebuild -s appserver but with a lando restart Xdebug is completely unable to connect. Checking the phpinfo() in both cases and as far as I can tell... the configuration is the same.

I'm using the pantheon recipe with the additional configuration of

services:
  appserver:
    extras:
      - echo 'xdebug.remote_enable=1' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
      - echo 'xdebug.remote_connect_back=1' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini