feat: add add keymaps for debug and break on exceptions

This commit is contained in:
Stevan Freeborn
2025-01-27 14:36:17 -06:00
parent 87aa55a273
commit 6e3e956011
2 changed files with 11 additions and 11 deletions
+5 -5
View File
@@ -8,6 +8,8 @@ return {
local dap = require("dap")
local dapui = require("dapui")
dap.defaults.fallback.exception_breakpoints = { "raised", "uncaught" }
dapui.setup({
controls = {
element = "repl",
@@ -169,11 +171,7 @@ return {
vim.g["dotnet_last_dll_path"] = request()
else
if
vim.fn.confirm(
"Change the path to dll?\n" .. vim.g["dotnet_last_dll_path"],
"&yes\n&no",
2
) == 1
vim.fn.confirm("Change the path to dll?\n" .. vim.g["dotnet_last_dll_path"], "&yes\n&no", 2) == 1
then
vim.g["dotnet_last_dll_path"] = request()
end
@@ -211,6 +209,8 @@ return {
end
vim.keymap.set("n", "<Leader>dt", dap.toggle_breakpoint, { desc = "Toggle breakpoint" })
vim.keymap.set("n", "<Leader>dbc", dap.clear_breakpoints, { desc = "Clear all breakpoints" })
vim.keymap.set("n", "<Leader>dbl", dap.list_breakpoints, { desc = "Clear all breakpoints" })
local continue = function()
if vim.fn.filereadable(".vscode/launch.json") then