Very strange.... Exceptions cause loss of user session when debugging is on. Is it Phalcon or is it me?

I use PHPEd remote debugger when developing. Every time when my application throws an exception and it is caught by PHPEd, AND I decide to terminate script execution, I lose user session.

If I let the execution continue, session is preserved.

Session is not lost when debugger is off and it does not matter if exception is left unhandled.

I have never seen anything similar in all my years dealing with remote debugging. So, my question is - could it be that Phalcon's session handler "forgets" the session variables when exception is thrown and execution is aborted from within the IDE?

Yes, I can see both $_SESSION and $_COOKIE after an exception is thrown and execution is halted. I am absolutely positive that PHPEd does not flush any superglobals - I've been debugging Exceptions for a long time and never experienced anything similar. Clearly, it's something inside Phalcon extension.

I can reliably reproduce this behaviour, if anyone from development team wants to have a closer look.