Forum > Debugger
Upgrade to Lazarus 2.2.6, I can't compile with debug info?
bbrx:
Hello,
I'm using Arch linux with latest gnome 44.1, yesterday I upgrade to Lazarus 2.2.6 and since I can't compile with debug actived.
By default I set gdb but I try also to change backend debugger by FPDebuger and nothing change :(
If I disable debug option from project->debugger, I can compile and run.
I tried to remove .lazarus folder and nothing changes, any ideas?
Thanks for your help
Regards,
Martin_fr:
The error you get usually means there are some old ppu files.
"Form2" would be in your app.
Try a clean build (run menu).
If that does not help, then find any *.ppu and *.o and maybe *.dbg and maybe link*.res file in your project dir, and remove.
Btw, you may want to set either "Dwarf with sets" (for gdb)
or "dwarf 3" for fpdebug.
If needed:
Make sure to rebuild the entire IDE with "make clean bigide" or via tools menu with checked option for "clean all".
If that does not work, check the install location, and also the location of the previous install. Remove ppu files from the previous install, in case some incorrect config accesses them.
Martin_fr:
Also, make sure that the unit with TForm2 (e.g. "unit2") is added in the project inspector, if not already the case.
bbrx:
bonjour Martin,
Thank you for taking the time to reply.
I just deleted all the files that were in the tmp folder, to be sure. I still get the same message.
I don't understand the link with a Form2?
I start Lazarus with a new default project with no new form, I got the message when I try to compile.
Thank you.
Martin_fr:
Sorry, I misread that. the error is DBG2 not Form2.
So it is in the LCL units. Meaning, the need to rebuild (clean all) the IDE. (you can try to rebuild the package LCL instead, but easier to de the IDE.
Navigation
[0] Message Index
[#] Next page