Author Topic: Unable to debug on macOS  (Read 1024 times)

rjpontefract

  • Senior Community Member
  • Posts: 256
  • Hero Points: 10
Unable to debug on macOS
« on: November 14, 2024, 08:51:28 PM »
Running SE 29 on macOS 15.1 on ARM.

I used to be able to debug single file projects written in C/C++ using LLDB.  I tried to use this today and the debugger starts, the application runs but no breakpoints are hit.  I tried it with a single file project and with a larger project with a workspace and neither works.  I tried using a clean configuration which made no difference.  LLDB works fine from the command line, as does debugging using LLDB in VSCode.

Any help would be appreciated.

rjpontefract

  • Senior Community Member
  • Posts: 256
  • Hero Points: 10
Re: Unable to debug on macOS
« Reply #1 on: November 18, 2024, 10:36:13 PM »
Well that's disappointing, I at least expected some sort of suggestion of things to try.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6996
  • Hero Points: 533
Re: Unable to debug on macOS
« Reply #2 on: November 26, 2024, 10:30:17 PM »
Here's the fix for getting SlickEdit's LLDB debugging working on Sequoia with Xcode 16 (clang 16):
 
* Open your SlickEdit LLDB Workspace/Project
* Go to Project>Properties
* Select the Tools Tab
* Select the Compile tool
* Select the "Debug" configuration
* Click on "Options..."
* Select the Compile tab
* Set "Other Options:" to -fdebug-default-version=4
* Press OK on the clang++ Options dialog
* Press OK on the Project Properties dialog
* Rebuild or Build your application

rjpontefract

  • Senior Community Member
  • Posts: 256
  • Hero Points: 10
Re: Unable to debug on macOS
« Reply #3 on: November 26, 2024, 10:56:58 PM »
Thank you, it's very much appreciated.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6996
  • Hero Points: 533
Re: Unable to debug on macOS
« Reply #4 on: November 27, 2024, 01:48:36 AM »
A hot fix is available for this (hot fix 1 for v29). The hot fix automatically adds this clang compiler option if necessary.

You can download the hot fix from here:

https://www.slickedit.com/hotfixes

Then load the hot fix: Help>Product Updates>Load Hot Fix...

Build or Rebuid your application after loading the hot fix and restarting SlickEdit.