mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix +debugger/start for dap-mode
And fix variable name typo.
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
(defun +debugger-list-for-dap ()
|
||||
(when (and (bound-and-true-p lsp-mode)
|
||||
(require 'dap-mode nil t)
|
||||
dsp-mode)
|
||||
dap-mode)
|
||||
(mapcar #'car dap--debug-template-configurations)))
|
||||
|
||||
(defun +debugger-list-for-realgud ()
|
||||
@ -48,7 +48,9 @@ for what debugger to use. If the prefix ARG is set, prompt anyway."
|
||||
(unless (fboundp debugger)
|
||||
(user-error "Couldn't find debugger backend %S" debugger))
|
||||
(setq-local +debugger--last debugger)
|
||||
(call-interactively debugger))
|
||||
(if (assoc debugger dap--debug-template-configurations)
|
||||
(dap-debug debugger)
|
||||
(call-interactively debugger)))
|
||||
(+debugger/start-last)))
|
||||
|
||||
;;;###autoload
|
||||
|
Reference in New Issue
Block a user