Add dap-mode for debugging.

This commit is contained in:
tastytea 2021-06-26 15:26:34 +02:00
parent 9715275d73
commit 655955aaa2
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 11 additions and 2 deletions

View File

@ -94,5 +94,8 @@ With ARG, do it that many times."
([(meta shift up)] . windmove-up)
([(meta shift down)] . windmove-down)))
;; Easy access to a family of keybindings.
(use-package hydra)
(provide 'basics/input)
;;; input.el ends here

View File

@ -6,9 +6,10 @@
(require 'basics/package-management)
(require 'basics/global-variables)
(require 'basics/input)
(require 'misc/completion)
(require 'programming/common)
(require 'text/common)
(require 'misc/completion)
;; Client for Language Server Protocol servers.
(use-package lsp-mode
@ -110,7 +111,12 @@
;; Debugging
(use-package dap-mode
:after (lsp-mode vterm)
:config (require 'dap-cpptools)
:custom (dap-lldb-debug-program "/usr/bin/lldb-vscode")
:config (progn
(require 'dap-cpptools)
(require 'dap-lldb)
(add-hook 'dap-stopped-hook ; Didn't work with :hook.
(lambda (arg) (call-interactively #'dap-hydra))))
:bind (:map dap-mode-map
("C-c b" . dap-breakpoint-toggle)
("S-<f6>" . dap-next)