Debugger problems lazarus / 12-Debugger ---------------------------------------------------------------------- Barnstorm · 2015-05-12 20:47 Hi I am new to MAC Lazarus but have used Delphi in past. Running Lazarus 1.4.0 FPC 2.6.4 and FPCSRC 2.6.4. having found debugger was missing downloaded via home-brew and set certificate as required. Simple project with button compiled ok but then failed on run with different errors on each run The GDB command: "-exec-run" returned the error: ",msg="Unable to find Mach task port for process-id 3146: (os/kern) failure (0x5).\n The GDB command: "-exec-run" returned the error: ",msg="Unable to find Mach task port for process-id 3157: (os/kern) failure (0x5).\n The GDB command: "-exec-run" returned the error: ",msg="Unable to find Mach task port for process-id 3169: (os/kern) failure (0x5).\n Can anyone suggest anything to try please? ---------------------------------------------------------------------- skalogryz · 2015-05-12 20:54 It appears you've missed the GDB signing step. It's not just setting up a certificate, it's also "codesign" gdb. ---------------------------------------------------------------------- Barnstorm · 2015-05-12 21:29 Hi Thanks, I have checked that I have set up the certificate and set trust to Code signing always allow.When I try to codesigb I got the error Johns-iMac:~ johnpayton$ codesign -s gdb-cert /usr/local/bin/gdb gdb-cert: this identity cannot be used for signing code Johns-iMac:~ johnpayton$ What have i done wrong? ---------------------------------------------------------------------- Barnstorm · 2015-05-13 11:57 I have rerun setting the certificate and signed it. Terminal says gdb-cert is already signed but Lazarus says it isn't? Where do I go from here? Johns-iMac:~ johnpayton$ codesign -s gdb-cert /usr/local/bin/gdb /usr/local/bin/gdb: is already signed Johns-iMac:~ johnpayton$ "-exec-run" returned the error: ",msg="Unable to find Mach task port for process-id 482: (os/kern) failure (0x5).\n (please check gdb is codesigned - see taskgated()"" ---------------------------------------------------------------------- Barnstorm · 2015-05-14 11:05 Solution was given to me from here http://forum.lazarus.freepascal.org/index.php/topic,27091.0.html