Recent

Author Topic: RE: No debug symbols  (Read 6110 times)

adamski

  • New Member
  • *
  • Posts: 16
RE: No debug symbols
« on: October 06, 2009, 11:42:18 pm »
Hi All;

I'm a Delphi programmer, looking to use Lazarus at home.
However, I'm having issues with debug information.

For instance; take the following procedure:

function Ttask.equals(const task: Ttask): boolean;
begin
  result:=(
    (id = task.id) and
    (categoryID = task.categoryID) and
    (dateDue = task.dateDue) and
    (description = task.description) and
    (statusID = task.statusID)
    );
end;     

Whenever I break and hover over the variables, all I get is "No symbol
'xxx' in current context"
Note: The code is referencing task 'properties'

I've also used the "local variables" dialogue, but all that gives me is
the task objects' address (i.e no properties)

Have I configured my compilation settings incorrectly, or is this a bug
( I'm using the latest test release Oct 2nd )


All the best
Marc

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9870
  • Debugger - SynEdit - and more
    • wiki
Re: RE: No debug symbols
« Reply #1 on: October 07, 2009, 02:20:01 am »
see http://wiki.lazarus.freepascal.org/Lazarus_Faq#Debugger

properties aren't fully working.  You can upgrade the FPC version (using trunc via SVN) and compile with dwarf information (see compiler options) to get some of them.

If the properties read the value of a function, this doesn't work at all at the moment. Delphi silently calls your functions (including the possibility of changing your variables). FPC/Lazarus doesn't.  (Ideally this should be an option in future)

The other way is using the "watches" window. Assuming common notation your properties would point to "FcategoryID", "FdateDue ", ... so you can just enter those variables in the watches window.


adamski

  • New Member
  • *
  • Posts: 16
Re: RE: No debug symbols
« Reply #2 on: October 09, 2009, 01:52:35 am »

Hi Martin - thanks for your help. I'm starting to understand the current debugging limitations a little more now.

Marc

 

TinyPortal © 2005-2018