[Lazarus] Stepping into the LCL with fpdebug
Luca Olivetti
luca at wetron.es
Mon Apr 22 10:37:59 CEST 2024
El 22/4/24 a les 10:10, Mattias Gaertner via lazarus ha escrit:
>
>
> On 22.04.24 09:54, Luca Olivetti via lazarus wrote:
>> [...]
>> make clean install OPT=-gw3 INSTALL_PREFIX=d:\pp-fpdebug
>>
>> (different path so I can keep the two versions) and I can step inside
>> the rtl, just not inside the LCL.
>>
>> Since the packages are automatically built when I build the project, I
>> think they should pick the -gw3 setting, shouldn't they?
>
> First of all, the fpc release units have no debug information, so
> normally there is nothing to pick.
I have no problem with rtl/fcl units, as I explained, I compile them
with debug info (either -gl or -gw3) and I can step into them.
>
> But if they have it would be super useful to have a setting "use the
> debug setting of the system unit", but there is not.
>
> You can add the -gw3 flag depending on build mode:
> https://wiki.lazarus.freepascal.org/IDE_Window:_Compiler_Options#Add_a_flag_to_project_and_all_packages
Then why I can step into the LCL with gdb and -gl?
I'm already using the additions and overrides but I don't currently
specify any debug option there.
Bye
--
Luca Olivetti
Wetron Automation Technology https://wetron.es/
Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007
More information about the lazarus
mailing list