[DUG] Debugger - variable values
Myles Penlington
myles at ams.co.nz
Wed Aug 8 09:11:47 NZST 2007
Do a build instead of a compile. Should fix the issue. Hmm, in D6 may
need to add the debug library to the path as well.
The main issue is that the unit (classes.pas) being used by the project
will not have debug info/frames etc.
One other alternative is to copy classes.pas into your project folder
while debugging.
We always have the full vcl on the path and rebuild the whole lot. Fixes
the issue.
Myles.
-----Original Message-----
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz]
On Behalf Of Wayne Roser
Sent: Wednesday, 8 August 2007 09:06
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Debugger - variable values
Situation
Using D6. Optimization off. Frames on. Allow function calls in new
watches on.
Problem
Still cannot see CommaText: function TStrings.GetCommaText eliminated by
linker. What else must I
set?
Wayne
NZ Borland Developers Group - Delphi List <delphi at delphi.org.nz> on
Tuesday, 7 August 2007 at 11:22
p.m. +0000 wrote:
>
>To see the contents of a string list, a quick way (turn on allow
function
>calls):
>
>srcTemplateInputLines.Text or
>srcTemplateInputLines.CommaText
>
>to see an individual element:
>
>srcTemplateInputLines[0], or srcTemplateInputLines[1], ...
>
>----- Original Message -----
>From: "John Bird" <johnkbird at paradise.net.nz>
>To: "'NZ Borland Developers Group - Delphi List'"
<delphi at delphi.org.nz>
>Sent: Tuesday, August 07, 2007 7:16 PM
>Subject: [DUG] Debugger - variable values
>
>
>> There is something I wanted to know about the debugger.....I love the
>> debugger being able to examine the values of variables in code. I
have
>> also
>> got used to that it just won't show the values of some. Loop
pointers
>> often won't get shown, particularly as you say after the loop is
finished.
>> Some others as well, I assume because of optimisation, or sometimes
simply
>> because it is time to reboot the PC or restart the IDE.
>>
>> The other type I had got used to never seeing the value of was a
member of
>> a
>> stringlist, eg
>>
>> TmWorkLine1:=srcTemplateInputLines.Strings[TemplatePtr];
>>
>> The debugger would just show srcTemplateInputLines | () as the value.
>> However one day, and it has only happened once, it did show the value
of
>> the
>> string. I got a surprise!
>>
>> So.....is the debugger supposed to be able to show the actual string
>> values
>> in a stringlist or not?
>>
>> John
>>
>>
>> _______________________________________________
>> NZ Borland Developers Group - Delphi mailing list
>> Post: delphi at delphi.org.nz
>> Admin: http://delphi.org.nz/mailman/listinfo/delphi
>> Unsubscribe: send an email to delphi-request at delphi.org.nz with
Subject:
>> unsubscribe
>>
>
>_______________________________________________
>NZ Borland Developers Group - Delphi mailing list
>Post: delphi at delphi.org.nz
>Admin: http://delphi.org.nz/mailman/listinfo/delphi
>Unsubscribe: send an email to delphi-request at delphi.org.nz with
Subject: unsubscribe
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
unsubscribe
Attention:
This communication is confidential and may be legally privileged. If you are not the intended recipient, please do not use, disclose, copy or distribute it, other than to return it to us with your confirmation that it has been deleted from your system.
More information about the Delphi
mailing list