From dea2aeeb137caafcafd0ad5e08310ae74abf078b Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Wed, 7 Feb 2024 11:51:52 +0100 Subject: [PATCH] mini debug things --- lua/custom/plugins.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lua/custom/plugins.lua b/lua/custom/plugins.lua index b63a311..578279c 100644 --- a/lua/custom/plugins.lua +++ b/lua/custom/plugins.lua @@ -743,6 +743,11 @@ local plugins = { command = "/home/plex/.local/bin/kitty", args = {}, } + dap.adapters.gdb = { + type = "executable", + command = "gdb", + args = { "-i", "dap" }, + } dap.adapters.codelldb = { type = "server", port = "30333", @@ -761,6 +766,7 @@ local plugins = { return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/", "file") end, cwd = "${workspaceFolder}", + -- FIXME: perhaps we can put the stdio somewhere more practical stopOnEntry = false, }, } @@ -784,10 +790,10 @@ local plugins = { dapui.open {} end dap.listeners.before.event_terminated["dapui_config"] = function() - dapui.close {} + -- dapui.close {} end dap.listeners.before.event_exited["dapui_config"] = function() - dapui.close {} + -- dapui.close {} end end, },