xdebug session continues some time after hitting breakpoint

After a minute or 2 stopped at breakpoint, debug session continues without any user input. The process completes as if the continue button was pressed, without stopping at any other breakpoints.

4 comments

Hi there,

No idea. I mean -- PHP process would usually be just terminated in my experience.

What do you debug -- a CLI script or a web page? If web page -- what server it is (Apache etc)?

Usually web server has a time limit on how long the interpreters can run the script or does not receive any output (which is the case when you debugging and not executing any statements that produce output). 2 minutes sounds about the default setting.

As far as I'm concerned it's purely webserver/PHP interaction config. I'm using IIS .. and it's easy to configure (once you know where). No solid idea about other web servers/php-fpm... but look for XXXtimeout kind of config options.

 

P.S. That's how I'm fixing tmeout for IIS (attachment in the very last comment): https://intellij-support.jetbrains.com/hc/en-us/community/posts/206378019/comments/207477989

0

Yes it's weird, happens every time. Both CLI and web. Stop on a breakpoint, wait a minute or 2, the debug session closes and the process completes.

I'm using docker-for-mac, php-fpm... Not a php config issue as far as I can tell, that hasn't changed. And the "timeout" is random amount 30-150 seconds or so. Tried 2017.3.2, 2017.3.1, 2017.2.4

0

If it happens for CLI as well .. then I absolutely have no clue (but then .. you are using Docker). I can debug my local CLI script as much as I want (Windows 10; nts 32-bit PHP builds) -- once I left it for over 1 hour and it still could resume later.

Sorry, not better suggestions .. but I doubt it's an issue from IDE side (no idea why it would need to have such "feature").

BTW -- try enabling xdebug log and see what it may say there -- maybe it will give some hints.

0

thanks for your help -- downgrading docker-for-mac fixes so I've filed an issue there: https://github.com/docker/for-mac/issues/2421

0

Please sign in to leave a comment.