all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Standard Elisp debugger vs. Edebug
@ 2015-05-05 21:52 Marcin Borkowski
  2015-05-05 22:13 ` Stefan Monnier
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Marcin Borkowski @ 2015-05-05 21:52 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list

Hi all,

there are two Elisp debuggers built into Emacs: the "standard" debugger
and Edebug.

Edebug seems more powerful and easier to use.

The obvious question arises: is there any reason to use the standard
debugger at all?

My gut feeling is that while Edebug is nicer to use and more powerful,
there might be cases when it doesn't work.  For once, it seems that
there is no edebug-on-error option, and the only (?) way to use Edebug
to locate/examine errors is to manually step to the place where an error
occurs (or set up a breakpoint, temporary or otherwise, near the
suspicious location).  Even then, Edebug won't show me the backtrace,
for instance, and edebugging complicated code (in case I don't know
exactly where the error occurs) might be rather difficult/cumbersome.
So, the standard debugger at least helps to locate the error, and then
I can use Edebug to watch the code "live".  Am I right?

Another suspicion of mine is that the standard debugger is lower-level,
and it might be the case that some code (e.g., macros) will trip edebug
(since you have to use debug declarations in macro definitions - and
what if you have bugs in these?).  I would guess that using the standard
debugger might be easier with macro-heavy code, at least sometimes.  Am
I right?

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

TIA,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-05-06  8:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.