Closed cxwx closed 1 year ago
@cxwx How you get it to work? I encounter the same problem
May I ask how you solved it?
failed, change to lldb-vscode
@cxwx How you get it to work? I encounter the same problem
I spent some time looking at this today, the issue I found was that localhost
was being translated at some point to the ipv6 address ::1
, while codelldb wasn't binding to it. I used instead 127.0.0.1
as the host and it worked fine.
localhost
-> 127.0.0.1
Debug adapter definition and debug configuration
dap.configurations.cpp = { name = 'launch codelldb', type = 'codelldb', request = 'launch', program = function() return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file') end, cwd = '${workspaceFolder}', stopOnEntry = false, args = {}, }
Debug adapter version
install by mason
Steps to Reproduce
try a simple code
g++ main.cpp -o main
try to debug
Expected Result
loaded
Actual Result
Couldn't connect to localhost:xxx: ECONNREFUSED
try to change ports but still not work?