You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, executing dapui.eval() without an active session yields an empty box. That might not be the intended behavior.
I use a wrapper around dapui.eval(), which might be a useful default:
--- Only execute the provided function in an active DAP session.localexecute_if_dap_active=function(fn)
ifrequire("dap").session() ==nilthen--- dap.session() returns the active session, or `nil`, if there is no active session.returnelsefn()
endend--- Then, I use this mapping.vim.keymap.set("n", "<leader>de", function() execute_if_dap_active(dapui.eval) end, {silent})
The text was updated successfully, but these errors were encountered:
Currently, executing
dapui.eval()
without an active session yields an empty box. That might not be the intended behavior.I use a wrapper around
dapui.eval()
, which might be a useful default:The text was updated successfully, but these errors were encountered: