[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugger tries to access count property before _new completes


Le 25/05/2024 à 17:02, Brian G a écrit :
This is what appears to happen during a debug session..

When _next is defined for a class the debugger tries to access the count property before the _new completes, this sometimes causes strange behavior/hangs when the count property depends upon the
values internally being configured before the count value becomes valid.

This seems to happen when a popup is open for the object from a previous debug session, and goes from not available.

My question is :  Do we have to guard against this somehow in our code, or is it a debugger bug?

It certainly led me down some strange and unexplainable paths until I figured it out, sometimes even hanging the
application.



This is a design problem in the debugger. Looking at variables can run code unexpectedly and create side effects. I think it cannot be avoided most of the time.

--
Benoît Minisini.


References:
Debugger tries to access count property before _new completesBrian G <brian@xxxxxxxxxxxxxxxx>