refactor!(debugger): remove dap-mode

BREAKING CHANGE: This removes dap-mode from the debugger module. Use
dape instead.

dap-mode was deprecated in b4bd368 when realgud was replaced with dape,
which has been excellent, so I want to focus this module's support on it
going forward.

Ref: b4bd368485
This commit is contained in:
Henrik Lissner
2025-09-16 12:07:54 -04:00
parent 979b3aa8c1
commit e0729fa7d7
3 changed files with 6 additions and 96 deletions

View File

@@ -1,25 +1,13 @@
;;; tools/debugger/autoload/debugger.el -*- lexical-binding: t; -*-
;;;###autoload
(defun +debugger/start ()
"Start a debugger in the current project and buffer."
(interactive)
(call-interactively
(if (and (modulep! +lsp)
(bound-and-true-p lsp-mode)
(require 'dap-mode nil t))
#'dap-debug
#'dape)))
(defalias '+debugger/start #'dape)
;;;###autoload
(defun +debugger/quit ()
"Quit the active debugger session."
(interactive)
(if-let* ((conn (and (modulep! +lsp)
(require 'dap-mode nil t)
(dap--cur-session))))
(dap-disconnect conn)
(if-let* ((conn (and (featurep 'dape)
(dape--live-connection 'parent t))))
(dape-quit conn)
(user-error "No debugger session to quit"))))
(if-let* ((conn (and (featurep 'dape)
(dape--live-connection 'parent t))))
(dape-quit conn)
(user-error "No debugger session to quit")))