-
Hi, I was trying to use the debugger for rust programs using rust-tools (which is using nvim dap). I setted a breakpoint in the program, and when I start the debugger, the UI (using da-ui) just exits immediately, and there's no error message on my neovim. So I set the log level to 'TRACE', and read the dap log.
I see that the process in category "console" exits with code -1, but I don't really understand why is this happening.. Can someone help me debug this problem? I am using codelldb to debug the rust code, and the codelldb is being installed using Mason. My current config is used in my Linux and MacOS environment, and in Linux it's working properly. -- ...
local mason_registry = require("mason-registry")
local codelldb = mason_registry.get_package("codelldb") -- note that this will error if you provide a non-existent package name
codelldb:get_install_path() -- returns a string like "/home/user/.local/share/nvim/mason/packages/codelldb"
local extension_path = codelldb:get_install_path() .. "/extension/"
local codelldb_path = extension_path .. "adapter/codelldb"
local liblldb_path = extension_path .. "lldb/lib/liblldb.so"
if vim.loop.os_uname().sysname == 'Darwin' then
liblldb_path = extension_path .. "lldb/lib/liblldb.dylib"
end
-- ...
dap = {
adapter = require("rust-tools.dap").get_codelldb_adapter(codelldb_path, liblldb_path)
},
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Solved. This is related to codelldb problem for MacOS Sonoma. From codelldb discussion: vadimcn/codelldb#456 (reply in thread) |
Beta Was this translation helpful? Give feedback.
Solved.
This is related to codelldb problem for MacOS Sonoma. From codelldb discussion: vadimcn/codelldb#456 (reply in thread)