0

For last few days I have been learning to work with neovim/lazyvim and configuring to work with C++

Idea is to try to see if I can use this as main editor, instead of vscode. I managed to setup everything and everything works on Linux. Tried same thing on M3 macbook and I have problem with running debugger.

What I did:

  1. Installed codelldb through Mason plugin.
  2. Setup configuration
if not dap.adapters["codelldb"] then
  require("dap").adapters["codelldb"] = {
  type = "server",
  host = "localhost",
  port = "${port}",
  executable = {
    command = "codelldb",
    args = {
      "--port",
      "${port}",
    },
  },
}
end

for _, c in ipairs(config_data) do
  dap.configurations["cpp"] = dap.configurations["cpp"] or {}
  table.insert(dap.configurations["cpp"], c)
end

But when I run the debug, i get error that connection is refused on localhost, ECONNREFUSED.

I tried to change to 127.0.0.1, because I read somewhere that I might be using IPV6 (not sure what was meant by that)

Has anyone experienced similar problem on Mac?

0

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.