Add lldb debug config

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

View File

@ -360,6 +360,29 @@ dap.listeners.before.event_exited.dapui_config = function()
dapui.close() dapui.close()
end 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 if vim.fn.has("mac") then
workspaces = { workspaces = {
{ {