0

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.

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

11 Comments

I followed the instructions for installing llvm but the "Debug Adapter Client" does not appear in the list of available plugins.
which CodeLite version are you using?
I am using codelite version 16.0.0 built from brew. It is indicated by brew be to the most recent version. Even without being able to run the plugin DebugAdapterClient, if I set the debugger to '/opt/homebrew/Cellar/llvm/15.0.6/bin/lldb-vscode', a single window appears with tabs "Locals" "Watches", ...
The more recent version is 17.0.0 in brew. Can you try it? docs.codelite.org/downloads/download/#macos
I cannot install codelite 17.0.0 with brew, only 16.0.0. Is there a direct download you have available.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.