<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 09/04/2016 21:34, Michael Thompson
wrote:<br>
</div>
<blockquote
cite="mid:CAKjh=-dA+KQMLA8Rje3Q4XymLma3N4jw-x3M5VkBv9Dcoqtj=g@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On 8 April 2016 at 17:08, Santiago A.
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:svaa@ciberpiula.net" target="_blank">svaa@ciberpiula.net</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">By the
way, has anybody managed to debug strings.text or any
property<br>
with a getter?<br>
</blockquote>
<div><br>
</div>
<div>I was hoping someone would answer this. I currently
insert the equivalent of</div>
<div>sHack := MyStrings.Text;<br>
</div>
<div><br>
</div>
<div>into code, and watch that.... Means I have to know I
want the value of that list before I start debugging...</div>
<br>
</div>
</div>
</div>
</blockquote>
getters are a long way to go still, and if the strings are involved,
then even longer.<br>
<br>
1) gdb does not support function calls to pascal<br>
2) strings are managed, gdb does not know how to deal with them, if
they are needed for function param or result. Special calls to
string management are needed or memory will be leaked or corrupted<br>
3) stabs, dwarf2 & 3 do not support encoding the above info<br>
4) Due to 3 fpc can not make that info avail. (maybe later dwarf
formats have it)<br>
<br>
But often you can find the private variable that holds the value,
and watch this.<br>
<br>
In Lazarus use the debug INSPECTOR, you can double click any member
variables, and go to nested objects etc. Once you found it copy it
to watches.<br>
<br>
for stringlist you can get all individual strings (but not the
text). tstringlist.flist.... somewhere.<br>
</body>
</html>