Forum > Other

[Solved] Is it possible to debug step by step with Lazarus + fpGUI ?

(1/1)

devEric69:
Hello,

I'm starting with fpGUI. I was able to load and compile a fpGUI's project in Lazarus IDE. I can create the targeted application for x11. I see the interface drawn with the x11 widgets. I manage to create a DEBUG mode in Lazarus IDE. I manage to launch and run in this DEBUG mode. And I can set a breakpoint.

But... the application never stops at this breakpoint :( . Do I have to look further in my IDE's configuration, or can't fpGUI targeted applications be debugged step by step?

Martin_fr:
That is  odd. Debugger should not be affected by what code you include...

Usual suspects:

-O-  (at max -O1, but really better NO optimization)  (though breakpoints often work at higher opt)

No Smart linking.

No Inlining.
Warning, if a method has the "inline" modifier, then even at -O- it will be inlined. Use {$INLINE off} at the top of the unit.

devEric69:

--- Quote ---That is  odd. Debugger should not be affected by what code you include...
--- End quote ---

Indeed, I can now trace, step by step: I've just had to recompile the fpgui_toolkit.lpk package, with debugging options and information (necessary, because the window inherits from TfpgForm).

Navigation

[0] Message Index

Go to full version