CodeLite Debugger - Debug Adapter Client, Failed to Connect to DAP server - mac

148 views Asked by At

I am very new to coding and am trying to learn C with the use of 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: https://docs.codelite.org/plugins/dap/#the-configuration-dialog
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.

Thx

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

1

There are 1 answers

3
Eran On

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: https://docs.codelite.org/plugins/dap/#lldb-vscode

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

HTH