Add lldb debug config

This commit is contained in:
Martin Pander
2025-07-25 11:14:39 +02:00
parent c3bf8c8e49
commit d522dcd5ab

View File

@ -360,6 +360,29 @@ dap.listeners.before.event_exited.dapui_config = function()
dapui.close()
end
dap.adapters.codelldb = {
type = 'server',
port = "${port}",
executable = {
command = "codelldb",
args = {"--port", "${port}"},
}
}
dap.configurations.zig = {
{
name = "Launch Zig Program",
type = "codelldb",
request = "launch",
program = function()
-- Prompts for the executable path when you start debugging
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/zig-out/bin/', 'file')
end,
cwd = "${workspaceFolder}",
stopOnEntry = false,
},
}
if vim.fn.has("mac") then
workspaces = {
{