[Lazarus] Debugging and Structured Data Arrays

Andrew Brunner andrew.t.brunner at gmail.com
Mon Aug 3 14:55:11 CEST 2009


Thanks guys.

I just wrote a toFile method for all StringArrays.  And place a toFile
call to inspect them.  Seems easier for now.  I'm sure at some point
the debugger or inspector will start working :-)



On Sun, Aug 2, 2009 at 5:56 PM, Martin<lazarus at mfriebe.de> wrote:
> Andrew Brunner wrote:
>>
>> Thanks Silvio,
>>
>> I'm not having a problem a problem with code running.  I'm not able to
>> Inspect the contents of VStringArray while debugging via GDB in
>> Ubuntu.
>>
>> Can you inspect the variable VStringArray?  How about VStringArray[0]?
>>  I can not.
>>
>> This is a fresh build of FPC and Lazarus from TRUNK and a BRAND new
>> install of Ubuntu 9.04.
>>
>>
>
> There a various problems, like this. It is an issue between fpc and gdb.
> A lot may depend on the version of  fpc and the version of gdb you use.
>
> A few thinks you can try, but I don't know if they will work for you.
>
> Try Dwarf versu stabs (Compiler option in Lazarus), Tab: Linking
>
> While debugging the following has worked for me under window (not sure if I
> used dwarf, I think not). And it only worked if there was an explicit type:
>  type TStringArray = Array of String; var a: TStringArray
> but not for
>  var a: Array of String;
>
> instead of
> a[0]
> I wrote (in the watch window)
> a^[0]
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>




More information about the Lazarus mailing list