Recent

Author Topic: Step-into the field setter  (Read 1822 times)

ginoo

  • Jr. Member
  • **
  • Posts: 84
Step-into the field setter
« on: April 18, 2024, 06:19:39 pm »
Hello,
I would like to make zeos step-into the field setter, how should I do it?

That is, debug field1.asString := '';

Thank you.
« Last Edit: April 18, 2024, 06:35:43 pm by ginoo »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10549
  • Debugger - SynEdit - and more
    • wiki
Re: Step-into the field setter
« Reply #1 on: April 18, 2024, 06:54:19 pm »
In order to debug zeos (or any package): Open that package, from the packages toolbar choose options, go to debugging, and enable debug info (dwarf-3 / unless you use gdb, then it is dwarf-2+sets).

After that the debugger should step in.

ginoo

  • Jr. Member
  • **
  • Posts: 84
Re: Step-into the field setter
« Reply #2 on: April 19, 2024, 08:11:29 am »
It works.
Other problem, however, it fails step into with a standard tfield (i.e., that of the standard LCL "fields.inc"). I have compiled Lazarus in Debug IDE but it does not work F7 and breakpoint. Should I do something else?

ginoo

  • Jr. Member
  • **
  • Posts: 84
Re: Step-into the field setter
« Reply #3 on: April 19, 2024, 09:28:40 am »
Resolved.
Now what I do is try to find the bug I found zeos 8 with the calculated fields (I try). For those interested in trying to solve it I also wrote an example that reports the problem.

https://zeoslib.sourceforge.io/viewtopic.php?t=199037

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10549
  • Debugger - SynEdit - and more
    • wiki
Re: Step-into the field setter
« Reply #4 on: April 19, 2024, 11:31:48 am »
It works.
Other problem, however, it fails step into with a standard tfield (i.e., that of the standard LCL "fields.inc"). I have compiled Lazarus in Debug IDE but it does not work F7 and breakpoint. Should I do something else?

You mean TField in unit "DB" in folder fcl-db? => That is part of fpc. You need to rebuild fpc, using the make files. Or using fpcupdeluxe.

ginoo

  • Jr. Member
  • **
  • Posts: 84
Re: Step-into the field setter
« Reply #5 on: April 20, 2024, 07:50:24 am »
thanks  @Martin_fr

 

TinyPortal © 2005-2018