Bookstore

Recent

Author Topic: Unable to run debugger  (Read 1253 times)

Alexandr F

  • New Member
  • *
  • Posts: 26
Unable to run debugger
« on: February 14, 2019, 01:00:48 pm »
macOS Mojave 10.14.3
Lazarus 1.8.4

Unable to run application in debug mode.

Error: Unable to find Mach task port for process-id 3506: (os/kern) failure (0x5).\n (please check gdb is codesigned - see taskgated(8))

I installed gdb, created gdb-cert certificate, make code signed - always trust,
sign gbd via terminal:  codesign -s /usr/local/bin/gdb

But i can run debugger.

Somebody can help me?


Alexandr F

  • New Member
  • *
  • Posts: 26
Re: Unable to run debugger
« Reply #1 on: February 14, 2019, 06:17:19 pm »
Solved. I installed Lazarus 2.0 and use lldb instead gdb.

kcandrews

  • New Member
  • *
  • Posts: 42
Re: Unable to run debugger
« Reply #2 on: February 14, 2019, 07:14:45 pm »
You may find this thread of interest:
http://forum.lazarus.freepascal.org/index.php/topic,42869.0.html
Re: using lldb, Martin_fr has been doing a lot of work to fix problems in OSX multi-threaded programs re: watches, exceptions, breakpoints.
Anyway you may be fine already if you are not doing multi-threaded stuff.
« Last Edit: February 14, 2019, 07:21:02 pm by kcandrews »