[RESOLVED] Debuger doesn't execute with fpcunit test lazarus / 12-Debugger ---------------------------------------------------------------------- gelinp · 2016-11-04 15:42 Hi, I make a fpcunit test, for my project, and I can't use break point with it. What I say is that I can add breakpoints but I when program is running I can't stop to breakpoints... Debug mode was created automaticaly with a button into project options... I can see build option with automatic (-g). I rebuild all my project with this debug configuration. So I can't understand what is wrong.. Any idea ? Thank you for your help. ---------------------------------------------------------------------- Thaddy · 2016-11-04 16:00 Use -gwl or -gwlh not -g only That may help. I usually also add -godwarfsets ---------------------------------------------------------------------- gelinp · 2016-11-04 19:55 I can't find the way to define -gwlh, only I can add -gw then -gl then -gh... THis is my options : -Tlinux -Mfpc -Scaghi -O1 -gw2 -godwarfsets -gl -gh -l -vabq -Fl/opt/gnome/lib -Fu.. -Fu../types -Fu../tools -Fu../datamodule -Fu../adaptateurs -Fu../../../zeos2/packages/lazarus/lib/zcomponent/i386-linux -Fu../../../zeos2/packages/lazarus/lib/zdbc/i386-linux -Fu../../../zeos2/packages/lazarus/lib/zplain/i386-linux -Fu../../../zeos2/packages/lazarus/lib/zparsesql/i386-linux -Fu/usr/share/lazarus/1.6/components/ideintf/units/i386-linux/gtk2 -Fu/usr/share/lazarus/1.6/components/fpcunit/lib/i386-linux/gtk2 -Fu../../../zeos2/packages/lazarus/lib/zcore/i386-linux -Fu/usr/share/lazarus/1.6/components/synedit/units/i386-linux/gtk2 -Fu/usr/share/lazarus/1.6/components/lazcontrols/lib/i386-linux/gtk2 -Fu/usr/share/lazarus/1.6/lcl/units/i386-linux/gtk2 -Fu/usr/share/lazarus/1.6/lcl/units/i386-linux -Fu/usr/share/lazarus/1.6/components/lazutils/lib/i386-linux -Fu/usr/share/lazarus/1.6/packager/units/i386-linux -Fu. -dLCL -dLCLgtk2 -gwl Project compil, but I can't use break points... It's like the application fpcunit will not be complied with debug options, so it will not start debuger... My gdb version is : GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1 ---------------------------------------------------------------------- gelinp · 2016-11-05 11:30 I respond to myself : I find out the option "use an application at startup" which was activated. So I deactivated it and it's ok...