[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I get edebug online?

From: Michael Heerdegen
Subject: Re: How do I get edebug online?
Date: Tue, 18 Jan 2022 00:55:29 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Davin Pearson <> writes:

> First I eval the following sexp:
> (setq edebug-all-defs t)
> Then I issue the following command on the following code which resides
> in a file called:
> ~/java-training-wheels/dlisp/coolmacs/dmp-grep--splat-file.el.
> The command is \C-\M-x.  The file contains the following defun:
> (defun fac (n)
>   (when (= 5 n)
>     (message "Foo bar")
>     (edebug)
>     (message "Rita Hayworth"))
>   (if (< 0 n)
>       (* n (fac (1- n)))
>     1))
> Execute the following command:
> (fac 10)
> and it comes back at you with the following backtrace: (see after this
> backtrace for my question)
> Debugger entered: nil
> [...]

While I agree that in your situation it's more appropriate to call C-M-x
with prefix argument, your recipe should enable edebug nonetheless, so I
have reported your discovery as new Bug#53331.  Hard to believe that
nobody ever reported this.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]