Recent

Author Topic: How to setup Debug on OSX El Capitan 10.11.15  (Read 4737 times)

oopman

  • New Member
  • *
  • Posts: 11
How to setup Debug on OSX El Capitan 10.11.15
« on: June 08, 2016, 06:23:21 pm »
I have been unable to setup gdb on my macbook air and at least for me none of the instructions I've found work? If possible could someone walk me through adding debug capability to my installation of Lazarus on my MBA? I use Lazarus on a Windows environment and longtime user of Delphi but the debugger on OSX has ate my lunch.

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1059
Re: How to setup Debug on OSX El Capitan 10.11.15
« Reply #1 on: June 13, 2016, 04:21:16 pm »
You should be more clear about what instructions you followed and what exactly did not work. If you managed to install the gdb binary, but you still get errors (e.g. regarding "(os/kern) failure (0x5)"), try following the troubleshooting section that I just added to official gdb wiki page on code signing.

lalves90

  • Newbie
  • Posts: 3

madref

  • Hero Member
  • *****
  • Posts: 949
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Lazarus 3.99 (rev main_3_99-649-ge13451a5ab) FPC 3.3.1 x86_64-darwin-cocoa
Mac OS X Monterey

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1059
Re: How to setup Debug on OSX El Capitan 10.11.15
« Reply #4 on: July 12, 2016, 01:22:47 pm »
Both of your ways are bad. Except for /usr/local, everything under /usr is reserved to the OS and those files can be deleted with any OS update (and will probably be removed with every major OS update). You are not supposed to write anything there, even before SIP was introduced.

madref

  • Hero Member
  • *****
  • Posts: 949
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
Re: How to setup Debug on OSX El Capitan 10.11.15
« Reply #5 on: July 16, 2016, 08:59:10 pm »
they may be bad, but they work 8)
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Lazarus 3.99 (rev main_3_99-649-ge13451a5ab) FPC 3.3.1 x86_64-darwin-cocoa
Mac OS X Monterey

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1059
Re: How to setup Debug on OSX El Capitan 10.11.15
« Reply #6 on: July 19, 2016, 08:07:16 pm »
I posted the proper way that also works above. I would really appreciate it if you marked your posts with a statement that people should only do that as a last resort, not to expect any kind of support if something breaks, that any system update may break what they did, and that they should follow the official instructions instead.

 

TinyPortal © 2005-2018