All keybindings are different than most of the scarce resources you can find on the internet already. A simple step by step tutorial would help A LOT:
- find
defun
you want to debug
you can do that by either pressing K
(+lookup/documentation
) to find it’s definition in helpful
notes or by pressing g d
(+lookup/definition
) to go directly to the file.
- run
edebug-defun
(is this correct?!) - run the function in the context/buffer you need to debug
- debugger starts, on the left there is cursor showing its current position
- press
n
(edebug-next-mode
) to proceed line by line. - press
S
(edebug-stop
) to stop debugger manually.
Tips:
- to “remove” edebug instrumentation from a defun function evaluate it again (for example by putting cursor (mark/point) in the function and pressing
[<leader>](https://yusbk.github.io/2021/04/27/doom-emacs-tips/) m e d
(eros-eval-defun
)
Lack of this type of pragmatic documentation makes doom emacs way more difficult than it needs to be. Examples, examples, examples…