* * *

Author Topic: [RESOLVED] Debuger doesn't execute with fpcunit test  (Read 624 times)

gelinp

  • Full Member
  • ***
  • Posts: 114
[RESOLVED] Debuger doesn't execute with fpcunit test
« on: November 04, 2016, 04:42:37 pm »
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.
« Last Edit: November 05, 2016, 12:32:17 pm by gelinp »
My configuration is : Lazarus 1.4.4 / FPC 3.0.0 / Debian GNU/Linux 8 (jessie)

Thaddy

  • Hero Member
  • *****
  • Posts: 3431
Re: Debuger doesn't execute with fpcunit test
« Reply #1 on: November 04, 2016, 05:00:20 pm »
Use -gwl or -gwlh
not -g only

That may help.

I usually also add -godwarfsets

gelinp

  • Full Member
  • ***
  • Posts: 114
Re: Debuger doesn't execute with fpcunit test
« Reply #2 on: November 04, 2016, 08:55:20 pm »
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
« Last Edit: November 05, 2016, 07:31:29 am by gelinp »
My configuration is : Lazarus 1.4.4 / FPC 3.0.0 / Debian GNU/Linux 8 (jessie)

gelinp

  • Full Member
  • ***
  • Posts: 114
Re: Debuger doesn't execute with fpcunit test
« Reply #3 on: November 05, 2016, 12:30:29 pm »
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...
My configuration is : Lazarus 1.4.4 / FPC 3.0.0 / Debian GNU/Linux 8 (jessie)

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus