user20940451
user20940451

Reputation: 9

Why does CodeLite not open the LLDB or GDB debuggers?

My large application with codelite builds fine with g++ and comes up and runs. When I try to start either LLDB or GDB either something flashes on the monitor and stops or simply just does nothing.

I changed debuggers frequently tried to acquire an older version of CodeLite.

System: M1 mac with 16G of memory, OS Ventura.

Upvotes: 0

Views: 1014

Answers (1)

Eran
Eran

Reputation: 2400

CodeLite no longer supports lldb directly (on all platforms). It has moved to use the new DAP (Debug Adapter Protocol) method of debugging code.

  • On macOS, you should install lldb-vscode via brew:

    brew install llvm
    
  • In CodeLite make sure that the DebugAdapterClient plugin is loaded: Plugins -> Manage...

  • Force a new scan: Settings -> Debug Adapter Client and CodeLite should detect the new debugger

  • In your project, change the debugger to lldb-vscode

You can read more about DAP integration here.

Upvotes: 1

Related Questions