Add dap-mode for debugging with LSP.

This commit is contained in:
tastytea 2021-06-22 17:19:18 +02:00
parent cbddc0f6ef
commit a56ad0988f
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 14 additions and 0 deletions

View File

@ -28,5 +28,9 @@
;; :type git :host github :repo "rndusr/subed"
;; :files ("subed/*.el")))
;; dap-mode works better with it.
(use-package vterm
:defer 4)
(provide 'misc/misc)
;;; misc.el ends here

View File

@ -107,5 +107,15 @@
:bind (:map lsp-ui-mode-map
("<f7>" . lsp-treemacs-errors-list)))
;; Debugging
(use-package dap-mode
:after (lsp-mode vterm)
:config (require 'dap-cpptools)
:bind (:map dap-mode-map
("C-c b" . dap-breakpoint-toggle)
("S-<f6>" . dap-next)
("C-S-<f6>" . dap-step-in))
:commands (dap-debug))
(provide 'programming/lsp)
;;; lsp.el ends here