Recent

Author Topic: Debugging  (Read 1914 times)

kenkelso

  • Newbie
  • Posts: 2
Debugging
« on: October 25, 2014, 03:39:08 pm »
Hello I am new to Lazarus and am having problems with debugging. Using OS X Yosemite, had a lot of trouble setting up gdb but it is installed and as far as I can see on the command line in Terminal is working.

Lazarus Debugger set up in Tools and also Program Options set to debug.

I set a breakpoint and run the program which works but does not stop at the breakpoint.

No error messages

Any help gratefully received

Ken

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9791
  • Debugger - SynEdit - and more
    • wiki
Re: Debugging
« Reply #1 on: October 25, 2014, 03:52:43 pm »
Check your setup: http://wiki.lazarus.freepascal.org/Debugger_Setup

Make sure the PATH to GDB is configured. If not search the forum, on how to install GDB for Mac.

I am not sure, if on Mac, you need stabs, or dwarf (project options / debugging)

Note that, if you want to break in a package, instead of code in your project, you need to compile the package with debug info.

kenkelso

  • Newbie
  • Posts: 2
Re: Debugging
« Reply #2 on: October 25, 2014, 05:53:11 pm »
Thanks Martin_fr I needs Dwarfs (whatever that is) in Project Options.

Ken

 

TinyPortal © 2005-2018