Add dap-mode for debugging with LSP.
This commit is contained in:
parent
cbddc0f6ef
commit
a56ad0988f
|
@ -28,5 +28,9 @@
|
||||||
;; :type git :host github :repo "rndusr/subed"
|
;; :type git :host github :repo "rndusr/subed"
|
||||||
;; :files ("subed/*.el")))
|
;; :files ("subed/*.el")))
|
||||||
|
|
||||||
|
;; dap-mode works better with it.
|
||||||
|
(use-package vterm
|
||||||
|
:defer 4)
|
||||||
|
|
||||||
(provide 'misc/misc)
|
(provide 'misc/misc)
|
||||||
;;; misc.el ends here
|
;;; misc.el ends here
|
||||||
|
|
|
@ -107,5 +107,15 @@
|
||||||
:bind (:map lsp-ui-mode-map
|
:bind (:map lsp-ui-mode-map
|
||||||
("<f7>" . lsp-treemacs-errors-list)))
|
("<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)
|
(provide 'programming/lsp)
|
||||||
;;; lsp.el ends here
|
;;; lsp.el ends here
|
||||||
|
|
Loading…
Reference in New Issue
Block a user