mini debug things
This commit is contained in:
parent
c7bbbf1a77
commit
dea2aeeb13
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue