[Lazarus] Debugging and Structured Data Arrays
Andrew Brunner
andrew.t.brunner at gmail.com
Mon Aug 3 00:41:29 CEST 2009
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.
On Sun, Aug 2, 2009 at 5:25 PM, Silvio Clecio<silvioprog at yahoo.com.br> wrote:
> Em 31/7/2009 21:17, Andrew Brunner escreveu:
>>
>> Hi All. I have a data type of TStringArray=Array of String...
>>
>> Under debugger (GDB Linux) I can't access any of the elements.
>>
>> Is there a compiler option to enable information during debugging and
>> or watching?
>>
>> Presently, when Inspecting or Viewing I get an error "Cannot perform
>> pointer math on incomplete type TSTRINGARRAY..."
>>
>> Any ideas?
>
> I not saw errors with the implementation below:
>
> -------
> TStringArray = array of string;
>
> implementation
>
> { TMainForm }
>
> procedure TMainForm.TestButtonClick(Sender: TObject);
> {$WRITEABLECONST ON}
> const
> CStringArrayLength: Integer = 20;
> {$WRITEABLECONST OFF}
> var
> VStringArray: TStringArray;
> begin
> SetLength(VStringArray, CStringArrayLength);
> VStringArray[0] := 'Test';
> ShowMessage(VStringArray[0]); // Show Test
> end;
> -------
> --
> []'s, Silvio Clécio
> ---
> Linux User: #481900
> Gmail, GTalk: silvioprog at gmail.com
> E-mail, Y! Messenger: silvioprog at yahoo.com.br
> BlogSite: http://silvioprog.blogspot.com/
> BlogSpot: http://silvioclecio.blogspot.com/
> VirtualDriver: http://silvioprog.4shared.com/
> °oO| Seja livre, use Linux! |Oo°
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
More information about the Lazarus
mailing list