[Emacs] Better dap-mode config, better documentation
This commit is contained in:
parent
0e4c6c6c4b
commit
a226f325d3
@ -6261,7 +6261,9 @@ And let’s enable some intergration with ~ivy~.
|
|||||||
[remap xref-find-apropos] #'consult-lsp-symbols))
|
[remap xref-find-apropos] #'consult-lsp-symbols))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
~dap-mode~ is an advanced debugging mode that works through lsp.
|
~dap-mode~ is an advanced debugging mode that works through LSP. Note
|
||||||
|
that currently, ~dap-firefox~ and ~dap-chrome~ don’t work correctly due to
|
||||||
|
[[https://github.com/emacs-lsp/dap-mode/issues/547][this issue]]. A workaround can be found in [[https://github.com/emacs-lsp/dap-mode/issues/554#issuecomment-1171256089][this comment]] though.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package dap-mode
|
(use-package dap-mode
|
||||||
:after lsp
|
:after lsp
|
||||||
@ -6270,11 +6272,19 @@ And let’s enable some intergration with ~ivy~.
|
|||||||
:config
|
:config
|
||||||
(dap-ui-mode)
|
(dap-ui-mode)
|
||||||
(dap-ui-controls-mode 1)
|
(dap-ui-controls-mode 1)
|
||||||
|
(add-hook 'dap-stopped-hook
|
||||||
|
(lambda (arg) (call-interactively #'dap-hydra)))
|
||||||
|
:init
|
||||||
|
;; JS/TS
|
||||||
|
(with-eval-after-load 'web-mode
|
||||||
|
(require 'dap-firefox)
|
||||||
|
(require 'dap-chrome)
|
||||||
|
(require 'dap-node))
|
||||||
|
|
||||||
|
;; Rust
|
||||||
|
(with-eval-after-load 'rustic-mode
|
||||||
(require 'dap-lldb)
|
(require 'dap-lldb)
|
||||||
(require 'dap-gdb-lldb)
|
(require 'dap-gdb-lldb)
|
||||||
|
|
||||||
(dap-gdb-lldb-setup)
|
|
||||||
(dap-register-debug-template
|
(dap-register-debug-template
|
||||||
"Rust::LLDB Run Configuration"
|
"Rust::LLDB Run Configuration"
|
||||||
(list :type "lldb"
|
(list :type "lldb"
|
||||||
@ -6282,7 +6292,7 @@ And let’s enable some intergration with ~ivy~.
|
|||||||
:name "LLDB::Run"
|
:name "LLDB::Run"
|
||||||
:gdbpath "rust-lldb"
|
:gdbpath "rust-lldb"
|
||||||
:target nil
|
:target nil
|
||||||
:cwd nil)))
|
:cwd nil))))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** DSLs
|
*** DSLs
|
||||||
|
Loading…
Reference in New Issue
Block a user