Recent

Author Topic: Debugger: Sometimes yes, sometimes no  (Read 1787 times)

jrdoner

  • Newbie
  • Posts: 6
Debugger: Sometimes yes, sometimes no
« on: March 05, 2015, 10:40:11 pm »
I am running Lazarus 1.2.6, on a MAC with OS10.10.2 (Yosemite).  I have the Lazarus options set so that the correct path to gdb is established, and I have the compile/link option set to compile code with debugger data included.  Previously, when I set a breakpoint and single-stepped the code, it worked like a debugger should.   Nww when I try to set a breakpoint, the code execution just ignores it.   Anybody have any idea what might have gone wrong here?

Thanks in advance for any insights.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9864
  • Debugger - SynEdit - and more
    • wiki
Re: Debugger: Sometimes yes, sometimes no
« Reply #1 on: March 06, 2015, 12:36:34 am »
No idea, but a few points to check:

- NO smartlinknig
- NO optimizations ( -O1 is ok-ish, but no opt is best)
- on MAC make sure debug info type is set to dwarf(2) + sets

http://wiki.lazarus.freepascal.org/Debugger_Setup

Also try a clean build.

If the breakpoints are not in your project, but in a package, then enable dwarf for the package too.

 

TinyPortal © 2005-2018