You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using XDebug + PHP, going through some code that contains a singleton class leads to Vdebug crashes. They can take a long time to recover, and then immediately crash again on the next step. I can prevent the crash by doing :VdebugEval! $not_a_var but this of course kills watching all context. VDebug expands the local variable containing the instance, finds its class' static property holding the same reference, and repeats.
I imagine the simplest way to avoid this is to check if any property (static or otherwise) is a reference to itself/one of its (visible) parents, and not expand it.
The text was updated successfully, but these errors were encountered:
Using XDebug + PHP, going through some code that contains a singleton class leads to Vdebug crashes. They can take a long time to recover, and then immediately crash again on the next step. I can prevent the crash by doing
:VdebugEval! $not_a_var
but this of course kills watching all context. VDebug expands the local variable containing the instance, finds its class' static property holding the same reference, and repeats.I imagine the simplest way to avoid this is to check if any property (static or otherwise) is a reference to itself/one of its (visible) parents, and not expand it.
The text was updated successfully, but these errors were encountered: