How to setup Debug on OSX El Capitan 10.11.15 lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- oopman · 2016-06-08 16:23 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 · 2016-06-13 14:21 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 · 2016-06-23 00:21 Have you saw my article? http://forum.lazarus.freepascal.org/index.php/topic,30713.msg195641.ht ml#msg195641 ---------------------------------------------------------------------- madref · 2016-07-12 11:13 There's an easier way http://forum.lazarus.freepascal.org/index.php?topic=33332.msg215808#ms g215808 ---------------------------------------------------------------------- Jonas Maebe · 2016-07-12 11:22 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 · 2016-07-16 18:59 they may be bad, but they work ---------------------------------------------------------------------- Jonas Maebe · 2016-07-19 18:07 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.