Debugger: Sometimes yes, sometimes no lazarus / 12-Debugger ---------------------------------------------------------------------- jrdoner · 2015-03-05 21:40 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 · 2015-03-05 23:36 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.