Warning: this is an htmlized version!
The original is here, and the conversion rules are here. |
;; This file: ;; http://anggtwu.net/elisp/edebug-2024.el.html ;; http://anggtwu.net/elisp/edebug-2024.el ;; (find-angg "elisp/edebug-2024.el") ;; Author: Eduardo Ochs <eduardoochs@gmail.com> ;; ;; A mini-tutorial on Edebug. See: ;; https://lists.gnu.org/archive/html/help-gnu-emacs/2024-12/msg00418.html ;; https://lists.gnu.org/archive/html/eev/2024-12/msg00004.html ;; https://lists.gnu.org/archive/html/eev/2024-12/msg00005.html ;; The easiest way to run it is with: ;; (find-wget-elisp "http://anggtwu.net/elisp/edebug-2024.el") ;; Preparation: ;; (emacs-lisp-mode) ;; (require 'edebug) ;; ;; See: (find-elinode "edebug") ;; (find-elnode "Edebug") ;; (find-efunctiondescr 'eval-defun "instrument") ;; (find-efunctiondescr 'edebug-mode) ;; (find-efunctiondescr 'edebug-mode "C-M-x" "eval-defun") ;; (eek "M-h M-k M-C-x ;; eval-defun") ;; (defun ee-triangle-buggy (n) (if (= n 1) 1 (+ n (ee-triangle-buggy (1= n))))) ;; Instrument the defun above with: (eek "3*<up> C-u M-C-x") ;; Run it in edebug mode with: (ee-triangle-buggy 4) ;; Start by learning these keys: ;; (find-elnode "Edebug Execution Modes" "<SPC>" "Step:") ;; (find-elnode "Edebug Misc" "q" "Return to the top level") ;; Local Variables: ;; coding: utf-8-unix ;; End: