refactor!(debugger): replace realgud with dape

BREAKING CHANGE: Anyone used to realgud will find it missing as of this
commit. It's been replaced with Dape (see
https://github.com/svaante/dape).

This change was made because realgud's implementation was archaic and
over-complicated, dap-mode requires lsp-mode (and has a lot of moving
parts and points of failure), and dape is straight-forward by
comparison; to set up and use. Note that dap-mode and dap-ui is now
deprecated and will be removed in the future, but still remains behind
the +lsp flag for backwards compatibility, at least until v3.

This also adds a '<leader> d' prefix for debugger commands (except for
vanilla users, who already have dape's prefix on 'C-x C-a')
This commit is contained in:
Henrik Lissner
2025-04-20 21:25:12 -04:00
parent ed85328f57
commit b4bd368485
6 changed files with 87 additions and 421 deletions

View File

@@ -1,10 +1,9 @@
;; -*- no-byte-compile: t; -*-
;;; tools/debugger/packages.el
(when (package! realgud :pin "365063ea8ce8ec6a852cb388088d84147421c3c2")
(when (modulep! :lang javascript)
(package! realgud-trepan-ni :pin "0ec088ea343835e24ae73da09bea96bfb02a3130")))
(package! dape :pin "c7a1f1abdbbcdb9135a73c00c58ef2f0a949f87c")
;; DEPRECATED
(when (modulep! +lsp)
(package! dap-mode :pin "56e92dd86b526c191275cf7813208baad14e0c5d")
(package! posframe :pin "12f540c9ad5da09673b2bca1132b41f94c134e82"))