Fix +debugger/start for dap-mode
And fix variable name typo.
This commit is contained in:
parent
95a6a2baaf
commit
69ba8bb657
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue