[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Debugger tries to access count property before _new completes
[Thread Prev] | [Thread Next]
- Subject: Re: Debugger tries to access count property before _new completes
- From: Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
- Date: Mon, 27 May 2024 00:15:14 +0200
- To: user@xxxxxxxxxxxxxxxxxxxxxx
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 thevalues 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 theapplication.
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.
Debugger tries to access count property before _new completes | Brian G <brian@xxxxxxxxxxxxxxxx> |