mini debug things

This commit is contained in:
Christoph J. Scherr 2024-02-07 11:51:52 +01:00
parent c7bbbf1a77
commit dea2aeeb13
Signed by: cscherrNT
GPG Key ID: 8E2B45BC51A27EA7
1 changed files with 8 additions and 2 deletions

View File

@ -743,6 +743,11 @@ local plugins = {
command = "/home/plex/.local/bin/kitty", command = "/home/plex/.local/bin/kitty",
args = {}, args = {},
} }
dap.adapters.gdb = {
type = "executable",
command = "gdb",
args = { "-i", "dap" },
}
dap.adapters.codelldb = { dap.adapters.codelldb = {
type = "server", type = "server",
port = "30333", port = "30333",
@ -761,6 +766,7 @@ local plugins = {
return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/", "file") return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/", "file")
end, end,
cwd = "${workspaceFolder}", cwd = "${workspaceFolder}",
-- FIXME: perhaps we can put the stdio somewhere more practical
stopOnEntry = false, stopOnEntry = false,
}, },
} }
@ -784,10 +790,10 @@ local plugins = {
dapui.open {} dapui.open {}
end end
dap.listeners.before.event_terminated["dapui_config"] = function() dap.listeners.before.event_terminated["dapui_config"] = function()
dapui.close {} -- dapui.close {}
end end
dap.listeners.before.event_exited["dapui_config"] = function() dap.listeners.before.event_exited["dapui_config"] = function()
dapui.close {} -- dapui.close {}
end end
end, end,
}, },