Skip to content

Commit

Permalink
tweak(dape): initial configuration for adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Nov 17, 2023
1 parent 0fe2482 commit 9b73891
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion modules/me-debug.el
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,48 @@

(use-package dape
:straight (:host github :repo "svaante/dape")
:init
(defvar +dape-cpptools-command
(concat minemacs-local-dir "dape/microsoft.vscode-cpptools/extension/bin/cpptools"))
(defvar +dape-codelldb-command
(concat minemacs-local-dir "dape/vadimcn.codelldb/extension/adapter/codelldb"))
:custom
(dape-inline-variables t))
(dape-inline-variables t)
(dape-configs `((debugpy
modes (python-ts-mode python-mode)
command "python3"
command-args ("-m" "debugpy.adapter")
:type "executable"
:request "launch"
:cwd dape-cwd-fn
:program dape-find-file-buffer-default)
(godot-launch
modes (gdscript-mode)
host "127.0.0.1"
port 6006
:type "server"
:request "launch")
(cpptools
modes (c-mode c-ts-mode c++-mode c++-ts-mode)
command-cwd ,(file-name-directory +dape-cpptools-command)
command +dape-cpptools-command
:type "cpptools"
:request "launch"
:cwd dape-cwd-fn
:program dape-find-file
:MIMode ,(cond
((executable-find "gdb") "gdb")
((executable-find "lldb") "lldb")))
(codelldb
modes (c-mode c-ts-mode c++-mode c++-ts-mode rust-mode rust-ts-mode)
command ,+dape-codelldb-command
host "localhost"
port 5818
command-args ("--port" "5818")
:type "lldb"
:request "launch"
:cwd dape-cwd-fn
:program dape-find-file))))

(use-package realgud
:straight (realgud :build (:not compile))
Expand Down

0 comments on commit 9b73891

Please sign in to comment.