all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Running until first unhandled error.
@ 2023-01-04  4:25 Davin Pearson
  2023-01-04  8:53 ` Jean Louis
  2023-01-04 11:03 ` Michael Heerdegen
  0 siblings, 2 replies; 3+ messages in thread
From: Davin Pearson @ 2023-01-04  4:25 UTC (permalink / raw)
  To: help-gnu-emacs

I am trying to get edebug online instead of checkpointing every
second line of code and in every buffer like so to narrow down
the source of the bug, i.e. an unhandled error message.

(message "&foo:100:")
(defun foo ()
  (message "&foo:101:")
  (setq abc 123)
  (message "&foo:102:")
  (foo)
  (message "&foo:103:")
  (bar)
  (message "&foo:104:")
  (setq def 456)
  (message "&foo:105:")
  )
(message "&foo:106:")

I eval a buffer using

(progn
  (mark-whole-buffer)
  (eval-buffer))

and it enters me into the *Debugger* as it should.

What I want to do is to run until the next unhandled error message,
but none of the *Debugger* keys seem to do this.  The Elisp
documentation is not very clear on this point.

Here are my edebug settings for you to help me debug
my code:

(progn
  (require 'debug)
  (require 'edebug)
  (setq edebug-all-defs t)
  (setq edebug-all-forms t)
  (setq edebug-on-error t)
  (edebug-eval-top-level-form)
  )

*Davin.*


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

end of thread, other threads:[~2023-01-04 11:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-04  4:25 Running until first unhandled error Davin Pearson
2023-01-04  8:53 ` Jean Louis
2023-01-04 11:03 ` Michael Heerdegen

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.