all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Joost Kremers <joostkremers@fastmail.fm>
To: Lewis Creary via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>
Cc: Lewis Creary <lewcreary@cs.com>
Subject: Re: Learning Edebug
Date: Fri, 20 Dec 2024 09:11:54 +0100	[thread overview]
Message-ID: <86wmfuai45.fsf@fastmail.fm> (raw)
In-Reply-To: <130443705.1910512.1734664285448@mail.yahoo.com> (Lewis Creary via Users list for the's message of "Fri, 20 Dec 2024 03:11:25 +0000 (UTC)")

On Fri, Dec 20 2024, Lewis Creary via Users list for the GNU Emacs text editor wrote:
> Hello,
> I'm trying to learn how to use the Emacs lisp function Edebug, but so far
> am not having any success.  The documentation says that I need to
> "instrument" the function that I want to debug, and I'm even having trouble
> with that.
> I've been programming in Emacs Lisp for over a decade, and have always
> found that print statements were sufficient for debugging my programs.  But
> now I have a bug that I won't be able to understand without stepping
> through the code with a debugger -- hence the need for Edebug.  I'm looking
> for a person who is willing and able to help me learn to use this tool.  If
> you are such a person, I'd be very glad to hear from you.
>   --  Lew Creary


Have you looked at the Edebug section in the Elisp manual:

(info "(elisp) Edebug")

It's quite long, but IME you don't need to read all of it right away. For
starters, read the first chapter "Using Edebug":

(info "(elisp) Using Edebug")

In fact, for the longest time, this was basically all I knew about
Edebug... 😆 One additional command I often find useful: `e`, which allows
you to evaluate an expression in the context of the program being debugged.

HTH


-- 
Joost Kremers
Life has its moments



  parent reply	other threads:[~2024-12-20  8:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <130443705.1910512.1734664285448.ref@mail.yahoo.com>
2024-12-20  3:11 ` Learning Edebug Lewis Creary via Users list for the GNU Emacs text editor
2024-12-20  6:23   ` mbork
2024-12-20  7:18   ` Eduardo Ochs
2024-12-20  8:11   ` Joost Kremers [this message]
2024-12-20 11:36   ` Michael Heerdegen via Users list for the GNU Emacs text editor
2024-12-20 15:37     ` [External] : " Drew Adams
2024-12-20 22:46   ` tpeplt
2024-12-21  2:41     ` Eduardo Ochs
2024-12-21  6:17   ` Joel Reicher
2024-12-21 18:44     ` [External] : " Drew Adams

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=86wmfuai45.fsf@fastmail.fm \
    --to=joostkremers@fastmail.fm \
    --cc=help-gnu-emacs@gnu.org \
    --cc=lewcreary@cs.com \
    /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.