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:
- Installed
codelldbthroughMasonplugin. - 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?