nvim: update debuggers

This commit is contained in:
dogeystamp 2024-12-07 21:05:21 -05:00
parent 77e5bfd750
commit fecb7ed935
No known key found for this signature in database
2 changed files with 6 additions and 10 deletions

View File

@ -25,12 +25,7 @@ local M = {}
----------------
keymap("<leader>rs", dap.continue)
keymap("<leader>rt", function()
-- hard restart (lldb just stops when restarted)
dap.terminate()
vim.cmd.sleep("100m")
dap.continue()
end)
keymap("<leader>rt", dap.restart)
keymap("<leader>rr", dap.terminate)
keymap("<F11>", dap.step_into)
keymap("<c-n>", dap.step_over)
@ -165,8 +160,9 @@ function M.run_input(file)
vim.api.nvim_buf_call(dapui.elements.console.buffer(), function()
vim.b.nvimdbg_inp_file = M.dbg_dir(file) .. "/input"
vim.cmd [[
let @x = join(readfile(b:nvimdbg_inp_file), "\n") .. "\n\n"
normal G"xp
" 0x4 is eof
let @x = join(readfile(b:nvimdbg_inp_file), "\n") .. "\n\n" .. "\x04"
normal! G"xp
]]
end)
end
@ -238,7 +234,7 @@ dap.configurations.python = {
----------------
dap.adapters.lldb = {
type = "executable",
command = "/usr/bin/lldb-vscode",
command = "/usr/bin/lldb-dap",
name = "lldb"
}

@ -1 +1 @@
Subproject commit 2b428ff2632e73295e9decbcf1c40d8e26213305
Subproject commit 0a0daa796a5919a51e5e5019ffa91219c94c4fef