[Lazarus] Some debug facts/improves

Martin lazarus at mfriebe.de
Sat Oct 3 14:29:33 CEST 2009


JoshyFun wrote:
> Hello Lazarus-List,
>
> Saturday, October 3, 2009, 3:36:46 AM, you wrote:
>
> PI> Debugger has one set of classes for IDE and another set of classes for
> PI> the debugging itself.
> PI> Classes which has IDE in name are used by IDE to save/load their values
> PI> to/from streams, etc.
> PI> TDBGWatch is used as a base class for the debugger - it has TIDEWatch as
> PI> slave. TGDBMIWatch is a paticular implementation for TDBGWatch which
> PI> works with gdb debugger.
>
> Ok, I see that part of the path, but there is still a missing point
> from my side. In one Watch window procedure the code looks like (not
> exactly):
>
> procedure Update(Watch: TIDEWatch);
> begin
>   Value:=Watch.Value;
> end;
>
> but manually following the execution flow, Watch.Value gets me to
> TIDEWatch.GetValue which looks like a default stub. So maybe the
> parameter should be different, maybe a TBaseWatch ?
>
>   
TIDEWatch is just a baseclass

On the IDE side you realy deal with a TManagedWatch defined in 
C:\lazarus_latest\ide\debugmanager.pas

Martin




More information about the Lazarus mailing list