all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to highlight the offending line of code with edebug
@ 2022-12-22 21:09 Davin Pearson
  2022-12-22 21:13 ` Davin Pearson
  0 siblings, 1 reply; 11+ messages in thread
From: Davin Pearson @ 2022-12-22 21:09 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 590 bytes --]

When I write the following code:

(progn
  (setq edebug-on-error t)
  (setq edebug-all-defs t))

(foo)
(defun foo ()
  tomcat
  )

How do I invoke the edebug debugger when you get an error:

Symbol’s value as variable is void: tomcat

I want the debugger to point to the offending line of code,
in this case tomcat.

The way that I currently find errors such as these is to put
checkpoints on every second line except the last line of defuns.
However this approach is rather cumbersome as I have to add a lot
of checkpoints and then remove them when I find the bug.

[-- Attachment #2: Type: text/html, Size: 749 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread
* How to highlight the offending line of code with edebug
@ 2022-12-21 23:45 Davin Pearson
  0 siblings, 0 replies; 11+ messages in thread
From: Davin Pearson @ 2022-12-21 23:45 UTC (permalink / raw)
  To: help-gnu-emacs

When I write the following code:

(progn
  (setq edebug-on-error t)
  (setq edebug-all-defs t))

(foo)
(defun foo ()
  tomcat
  )

How do I invoke the edebug debugger when you get an error:

Symbol’s value as variable is void: tomcat

I want the debugger to point to the offending line of code,
in this case tomcat.

The way that I currently find errors such as these is to put
checkpoints on every second line except the last line of defuns.
However this approach is rather cumbersome as I have to add a lot
of checkpoints and then remove them when I find the bug.

*Davin.*


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

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

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-22 21:09 How to highlight the offending line of code with edebug Davin Pearson
2022-12-22 21:13 ` Davin Pearson
2022-12-23  7:20   ` Eli Zaretskii
2022-12-23  7:36     ` Michael Welsh Duggan
2022-12-23  8:39       ` Eli Zaretskii
2022-12-26  0:54         ` Davin Pearson
2022-12-26 12:29           ` Eli Zaretskii
2023-01-02  0:27             ` Davin Pearson
2023-01-02 11:57               ` Eli Zaretskii
2023-01-02 22:11                 ` Davin Pearson
  -- strict thread matches above, loose matches on Subject: below --
2022-12-21 23:45 Davin Pearson

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.