Matthew-Freedman
Matthew-Freedman

Reputation: 1

CodeLite can't connect to DAP server?

I using CodeLite 17.0.0 on MacOS 12 Monterey 12.6.6

I followed the steps on the Debug Adapter Client page of CodeLite to download the llvm through brew but when I run lldb I get a time out error which, per the title, says:

"CodeLte - Debug Adapter Client Failed to Connect to DAP Server"

I have no clue how to fix this. I have redownloaded Codelite and made sure LLDB is up to date. My settings I believe are the same as shown here but I do not know where this error is being generated from and would love some help so I can use the compiler and continue on with the course I'm taking.

I was expecting the LLDB Debugger to run as shown in the class video but found I cannot get it to function.

Upvotes: 0

Views: 347

Answers (1)

Eran
Eran

Reputation: 2400

CodeLite does not invoke lldb directly, instead, it launches the dap client (Debug Adapter Protocol Client) - in your case, lldb-vscode.

You should install lldb-vscode as mentioned here.

Once installed, make sure CodeLite knows where to find it:

  • Open the Debug adapter client settings dialog (From the menu bar Settings -> Debug Adapter Client)

  • Make sure you have a tab with the title lldb-vscode exists

  • If the tab does not exist or it exists but points to a stale location, click on the magnifier (highlighted in the screenshot below) button and let CodeLite re-configure it (I added a screenshot that highlight what to check)

    enter image description here

Upvotes: 0

Related Questions