Recent

Author Topic: [SOLVED] gdb not found after 2.2.0 install on macOS Monterey (amd64)  (Read 424 times)

willbprog9933

  • Jr. Member
  • **
  • Posts: 82
  • Big guy, tiny brain :P
    • BrainOut!
Hi everyone,  :)

After a long hiatus from Lazarus and Free Pascal, I decided to install Lazarus 2.2.0 today.  After I uninstalled everything using the instructions from the wiki, I installed fpc, fpc-source and then Lazarus on my Intel Mac running Monterey (12.3).  When I start the IDE, the 'Welcome to Lazarus 2.2.0' window displays and there's a red exclamation point next to 'Debugger', with it saying 'Error: file not found' on the 'Debugger' tab.

From what I remember, on Linux and Windows, it seems like gdb is part of the official fpc/Lazarus install.  Is it not installed on macOS?

Thanks!  :D

« Last Edit: March 16, 2022, 03:35:50 am by willbprog9933 »
macOS, Linux, FreeBSD and sometimes OpenIndiana.

Blessed, loved and forgiven! :D

dbannon

  • Hero Member
  • *****
  • Posts: 2077
    • tomboy-ng, a rewrite of the classic Tomboy
Re: gdb not found after 2.2.0 install on macOS Monterey (amd64)
« Reply #1 on: March 16, 2022, 03:05:28 am »
I suspect gdb is still there but you definitely should use lldb, see

https://wiki.freepascal.org/Installing_Lazarus_on_macOS#Step_5:_Configure_the_Debugger

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

willbprog9933

  • Jr. Member
  • **
  • Posts: 82
  • Big guy, tiny brain :P
    • BrainOut!
Re: gdb not found after 2.2.0 install on macOS Monterey (amd64)
« Reply #2 on: March 16, 2022, 03:17:46 am »
I suspect gdb is still there but you definitely should use lldb, see

https://wiki.freepascal.org/Installing_Lazarus_on_macOS#Step_5:_Configure_the_Debugger

Davo

Thank you so much!  It's working now.  :D

I didn't see anything in the README for the macOS Lazarus installer about needing to set lldb as the debugger instead of gdb, so hopefully I can remember this next time I have to install.  I wonder why lldb isn't automatically selected on a new Lazarus install?  I purged *all* of my config files before installing, so any previous debugger choice shouldn't have been migrated.

Thanks again! :)
macOS, Linux, FreeBSD and sometimes OpenIndiana.

Blessed, loved and forgiven! :D

 

TinyPortal © 2005-2018