all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
To: Marcin Borkowski <mbork@mbork.pl>
Cc: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: Standard Elisp debugger vs. Edebug
Date: Wed, 06 May 2015 10:38:06 +0200	[thread overview]
Message-ID: <87siba3xu9.fsf@yahoo.fr> (raw)
In-Reply-To: <874mnqofox.fsf@mbork.pl> (Marcin Borkowski's message of "Tue, 05 May 2015 23:52:14 +0200")

Hi Marcin,

Marcin Borkowski <mbork@mbork.pl> writes:
>                        Even then, Edebug won't show me the backtrace,

Hit 'd' when in edebug to get a backtrace. That backtrace is less
powerful than the one you get with just (debug), but at least you have
function names, which you can then decide to instrument if you like.

> I would guess that using the standard
> debugger might be easier with macro-heavy code, at least sometimes.  Am
> I right?

It depends on what you're interested in debugging. e.g. if you
instrument the (defmacro) form, edebug will show you the steps while the
macro is being expanded (as well as the result of the expansion -- but
for this you have pp-macroexpand-last-sexp and the like).

e.g. if you C-u C-M-x on this:
(defmacro yf/foo ()
  `(progn ,(+ 2 2) t))

then eval (yf/foo)

edebug will show you that it evals (+ 2 2), and that the macro expands
to (progn 4 t) (which obviously evals to `t').

> Are there any other reasons to choose the standard debugger over
> Edebug?

C-h f debugger-mode RET shows what you can do in the debugger. FWIW I
often use these :
e               debugger-eval-expression
v               debugger-toggle-locals

-- 
Nico



      parent reply	other threads:[~2015-05-06  8:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-05 21:52 Standard Elisp debugger vs. Edebug Marcin Borkowski
2015-05-05 22:13 ` Stefan Monnier
2015-05-06  6:14 ` Tassilo Horn
2015-05-06  8:38 ` Nicolas Richard [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87siba3xu9.fsf@yahoo.fr \
    --to=theonewiththeevillook@yahoo.fr \
    --cc=help-gnu-emacs@gnu.org \
    --cc=mbork@mbork.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.