Lazarus
Programming => Widgetset => Other => Topic started by: devEric69 on August 19, 2020, 05:43:55 pm
-
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?
-
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.
-
That is odd. Debugger should not be affected by what code you include...
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).