From 7acbe5078b2c6c3081205e0606ee5c783f57793b Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Thu, 21 Sep 2023 17:42:08 +0200 Subject: [PATCH] dbg for c actually works --- lua/plex/plugins/coding.lua | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/lua/plex/plugins/coding.lua b/lua/plex/plugins/coding.lua index 9afb160..164823c 100644 --- a/lua/plex/plugins/coding.lua +++ b/lua/plex/plugins/coding.lua @@ -337,7 +337,7 @@ return { desc = 'Debugging: Toggle breakpoint', }, { - 'db', + 'dc', 'lua require\'dap\'.continue()', mode = { 'n', 'x' }, desc = 'Debugging: Start or continue debug session', @@ -355,10 +355,30 @@ return { desc = 'Debugging: Step over code', }, { - 'dm', + 'dr', 'lua require\'dap\'.repl.open()', mode = { 'n', 'x' }, - desc = 'Debugging: Menu', + desc = 'Debugging: repl Menu', + }, + { + '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', + }, + { + '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', }, }, },