watch clarification lazarus / 12-Debugger ---------------------------------------------------------------------- mm_coder · 2021-01-05 01:31 Lazarus 20 on Windies 10 64 While inspecting a button.caption value stepping through code, floating the mouse over the the button.caption in my code, the message indicates there is no component Caption. And if I add button.caption to my watch list, the same error. I have to change my watch to button.fcaption in order to see the caption value. Why is this the case? Many thanks ---------------------------------------------------------------------- Martin_fr · 2021-01-05 02:10 https://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Properties ---------------------------------------------------------------------- mm_coder · 2021-01-05 03:35 Didn't see an answer. Anything specific I'm missing in the link? ---------------------------------------------------------------------- Martin_fr · 2021-01-05 03:48 "button.caption" is a property. It calls a getter (I think function GetText) to get the value. However currently calling functions from the debugger is not possible. (There is work in progress to make it possible, but its still going to be a good while...) As for the error "there is no member called...." - It is not just that the debugger cannot call functions. - It is also that the compiler can not tell the debugger that there is a property. The debugger does not read the pascal code. It gets all the info it needs from the compiler (stored as something called "stabs" or "dwarf"). But this storage can not properly describe pascal "property" declarations. So the compiler can not describe it to the debugger, and the debugger does then not know it.... It's annoying, but there is no quick fix to it. ---------------------------------------------------------------------- mm_coder · 2021-01-05 03:53 Thanks for the info. I use Codeblocks and Netbeans, but neither has the kind of components in Laz..at least that I have found. I love the environment, so I'll find another way to determine my values.