Fix +debug/start for dap-based debuggers.

Reworks the internals of how the debugger module stores the last-used
configuration:
- car of the configuration indicates whether it is a realgud or a
dap-based configuration.
- For dap-based debuggers, the entire dap configuration is stored, with
code copied from `dab-debug`.
- When inside a project, don't store the configuration as a buffer-local
variable, but instead as a project-local variable using
`projectile-variable`.

Fixes #2367.
This commit is contained in:
Henrik Laxhuber 2021-02-28 22:13:24 +01:00
parent 88e18fc7c1
commit 6de1e56d4f
No known key found for this signature in database
GPG key ID: 6862099F57DBBFB1
2 changed files with 74 additions and 27 deletions

View file

@ -5,6 +5,8 @@
(when (featurep! :lang javascript)
(package! realgud-trepan-ni :pin "6e38cf838c7b47b5f1353d00901b939ffa36d707")))
(package! projectile-variable :pin "8d348ac70bdd6dc320c13a12941b32b38140e264")
(when (featurep! +lsp)
(package! dap-mode :pin "aa15b9c49b7e09bb23f9a4ff7855122f0eb19976")
(package! posframe :pin "3454a4cb9d218c38f9c5b88798dfb2f7f85ad936"))