dbg for c actually works

This commit is contained in:
Christoph J. Scherr 2023-09-21 17:42:08 +02:00 committed by PlexSheep
parent cbc4a9b5af
commit 7acbe5078b
1 changed files with 23 additions and 3 deletions

View File

@ -337,7 +337,7 @@ return {
desc = 'Debugging: Toggle breakpoint',
},
{
'<leader>db',
'<leader>dc',
'<cmd>lua require\'dap\'.continue()<CR>',
mode = { 'n', 'x' },
desc = 'Debugging: Start or continue debug session',
@ -355,10 +355,30 @@ return {
desc = 'Debugging: Step over code',
},
{
'<leader>dm',
'<leader>dr',
'<cmd>lua require\'dap\'.repl.open()<CR>',
mode = { 'n', 'x' },
desc = 'Debugging: Menu',
desc = 'Debugging: repl Menu',
},
{
'<leader>dms',
function()
local widgets = require('dap.ui.widgets')
local my_sidebar = widgets.sidebar(widgets.scopes)
my_sidebar.open()
end,
mode = { 'n', 'x' },
desc = 'Debugging: Menu scopes',
},
{
'<leader>dmf',
function()
local widgets = require('dap.ui.widgets')
local my_sidebar = widgets.sidebar(widgets.frames)
my_sidebar.open()
end,
mode = { 'n', 'x' },
desc = 'Debugging: Menu frames',
},
},
},