* * *

Author Topic: OS X 10.12 Sierra error gdb on un !  (Read 214 times)


  • New member
  • *
  • Posts: 12
OS X 10.12 Sierra error gdb on un !
« on: June 24, 2017, 02:47:46 pm »
I installed VMWare, Xcode, Lazarus ... gdb as writen in http://www.schoolfreeware.com/Install_Free_Pascal_Lazarus_On_Mac_OS_X_Tutorial.html

When loading the project I can
Compile, build without problems, but asking to run I got next:

The GDB command:"-exec-run" returned the error:
".msg="During startup program terminated with signal SIGTRAP, Trace/breakpoint trap.""

I just can stop and so test nothing...


  • Hero Member
  • *****
  • Posts: 2142
Re: OS X 10.12 Sierra error gdb on un !
« Reply #1 on: June 24, 2017, 08:30:47 pm »
I just can stop and so test nothing...

If your Lazarus has a Run | Run without Debugging menu item, try that. That should allow you to run the compiled app even though the debugger isn't working.

For running WITH debugging, you have two choices, I suppose. Since your problem has been reported here many times, you could read through the various posts and suggestions for how to get gdb running on Mac. Sometimes people succeed, sometimes they don't.

Or you could just create an Xcode project for your Lazarus project and debug your app in Xcode. Then you'll be using the lldb debugger that's included with Xcode. Here's how:




Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus