Cannot inspect class properties in Debugger
Original Reporter info from Mantis: TWhyman
-
Reporter name: Tony Whyman
Original Reporter info from Mantis: TWhyman
- Reporter name: Tony Whyman
Description:
&LtPos;Error> is returned in the "Inspect" Dialog whenever trying to view the value of a class property in the debugger. Prefixing the property with "self." allows the value to be inspected.
Bug is also present in svn trunk as of time of writing
Steps to reproduce:
I did the following on an up-to-date Ubuntu 14.04/Linux Mint MATE
edition with fpc 2.6.4, gdb 7.7.1
-
download trunk from svn (svn co
http://svn.freepascal.org/svn/lazarus/trunk) -
Ran "make"
-
After successful compile ran "./startlazarus --pcp=~/lazarus-devel"
-
Opened the "Image Viewer" example (examples/imgviewer)
-
Complied and ran successfully.
-
Changed build options to generate debugging info and rebuilt.
-
Set breakpoint on line 142 of the main form.
-
Right mouse click and select Debug->Evaluate/Modify on the public
property ODImage and the result is shown as "&LtPos;Error>". See attached
screenshot. -
Same on local variable "I" and the value is correctly shown.
Similarly "self.ODImage" works.
Mantis conversion info:
- Mantis ID: 27136
- Version: 1.2.6
- Fixed in version: 1.5 (SVN)
- Fixed in revision: 47371 (#53c99ecb)
- Monitored by: » tvr (tvr)
- Target version: 1.4