nvim: update debuggers
This commit is contained in:
parent
77e5bfd750
commit
fecb7ed935
@ -25,12 +25,7 @@ local M = {}
|
|||||||
----------------
|
----------------
|
||||||
|
|
||||||
keymap("<leader>rs", dap.continue)
|
keymap("<leader>rs", dap.continue)
|
||||||
keymap("<leader>rt", function()
|
keymap("<leader>rt", dap.restart)
|
||||||
-- hard restart (lldb just stops when restarted)
|
|
||||||
dap.terminate()
|
|
||||||
vim.cmd.sleep("100m")
|
|
||||||
dap.continue()
|
|
||||||
end)
|
|
||||||
keymap("<leader>rr", dap.terminate)
|
keymap("<leader>rr", dap.terminate)
|
||||||
keymap("<F11>", dap.step_into)
|
keymap("<F11>", dap.step_into)
|
||||||
keymap("<c-n>", dap.step_over)
|
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.api.nvim_buf_call(dapui.elements.console.buffer(), function()
|
||||||
vim.b.nvimdbg_inp_file = M.dbg_dir(file) .. "/input"
|
vim.b.nvimdbg_inp_file = M.dbg_dir(file) .. "/input"
|
||||||
vim.cmd [[
|
vim.cmd [[
|
||||||
let @x = join(readfile(b:nvimdbg_inp_file), "\n") .. "\n\n"
|
" 0x4 is eof
|
||||||
normal G"xp
|
let @x = join(readfile(b:nvimdbg_inp_file), "\n") .. "\n\n" .. "\x04"
|
||||||
|
normal! G"xp
|
||||||
]]
|
]]
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
@ -238,7 +234,7 @@ dap.configurations.python = {
|
|||||||
----------------
|
----------------
|
||||||
dap.adapters.lldb = {
|
dap.adapters.lldb = {
|
||||||
type = "executable",
|
type = "executable",
|
||||||
command = "/usr/bin/lldb-vscode",
|
command = "/usr/bin/lldb-dap",
|
||||||
name = "lldb"
|
name = "lldb"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 2b428ff2632e73295e9decbcf1c40d8e26213305
|
Subproject commit 0a0daa796a5919a51e5e5019ffa91219c94c4fef
|
Loading…
Reference in New Issue
Block a user