[Lazarus] Wrong error message in "Liste der überwachten Ausdrücke"

Martin Frb lazarus at mfriebe.de
Wed Aug 1 11:03:14 CEST 2018

This can currently not be fixed. 

Currently neither dwarf-2, nor stabs allow the compiler to tell the 
debugger about properties.
So for the debugger properties do not exist, hence the error.

For the specific case, try (IIRC):

On 01/08/2018 10:05, Joe via Lazarus wrote:
> "Liste der überwachten Ausdrücke" shows the wrong error message
> "<Error: Type TSTRINGLIST has no component named COUNT.>"
> OS: Win 10 (64), Lazarus 1.8.4, SVN Revision 57972.
> Steps to reproduce:
> Insert this in an unit and let your program call it.
> procedure TForm1.TestProcedure;
> var Liste: TStringList;
> begin
>   Liste:= TStringList.Create;
>   Liste.Add('Eins');
>   Liste.Free
> end;
> Set a breakpoint at "Liste.Add('Eins')" and insert "Liste.count" into 
> the "Liste der überwachten Ausdrücke" (Strg+Alt+W).
> Run the program. It stops at the breakpoint and the Liste der 
> überwachten Ausdrücke shows this wrong error message.
> Regards --  Joe

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20180801/00a4c428/attachment.html>

More information about the Lazarus mailing list