Add debug config for emacs

This commit is contained in:
zaubentrucker 2025-03-03 15:27:13 +01:00
parent 2981b6b975
commit 51a812b308

12
red/debug.el Normal file
View file

@ -0,0 +1,12 @@
;; Eval Buffer with `M-x eval-buffer' to register the newly created template.
(dap-register-debug-template
"GDB::Run muele"
(list :type "gdb"
:request "launch"
:name "GDB::Run muele"
:gdbpath "rust-gdb"
:target "${workspaceFolder}/red/target/debug/red"
:dap-compilation "cargo build"
:dap-compilation-dir "${workspaceFolder}"
:cwd "${workspaceFolder}"))