[Lazarus] triggered by the frontend / Representation of an "watch" [[was: Re: Playing with debuggers]]
Martin Frb
lazarus at mfriebe.de
Sun Nov 21 17:42:20 CET 2021
On 21/11/2021 17:23, Martin Frb via lazarus wrote:
>
> - Watches are stored in a list.
> That is needed by the frontend. Because the History wants to know
> about the watches.
> However, this may not be needed by the backend. That can be reviewed.
Actually, there only is a list for the frontend.
It is currently part of the DbgIntf. But it should not be. And should be
easily fixable.
The backend site has (through a forward handler) access to it.
The only use that is made of it, is to invalidate all watch values, if
they changed (actually this is only used, if the user modified a watch).
The debugger should in that case send an event (or call an abstract
method in the base class). This can then clear the values.
And the entire TWatches list can move up, into the current frontend.
More information about the lazarus
mailing list