all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Jean Louis <bugs@gnu.support>
Cc: Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: RE: [External] : Tip: Debugging with function `message-box'
Date: Thu, 24 Jun 2021 20:19:02 +0000	[thread overview]
Message-ID: <SA2PR10MB4474D8BD6705D0E8FF29AF3FF3079@SA2PR10MB4474.namprd10.prod.outlook.com> (raw)
In-Reply-To: <YNTdjZ/Zb5H15ewg@protected.localdomain>

> When there is something wrong I am also using C-u C-M-x to instrument
> the function then I can go step by step verifying what is happening.

1. That's `edebug', one of the Lisp debuggers for Emacs.

https://www.gnu.org/software/emacs/manual/html_node/elisp/Edebug.html

2. Plain `debug' is another Lisp debugger for Emacs.

https://www.gnu.org/software/emacs/manual/html_node/elisp/Debugger.html

 * `debug-on-entry' to debug on entry to a function,
   including a built-in (coded in C).  (And some C
   code calls Lisp functions.)

 * Non-nil `debug-on-error', to just see a backtrace.

 * Place calls to `debug' in code as breakpoints,
   i.e., places where the debugger is entered.

3. GUD is another debugger you can use with Emacs.

https://www.gnu.org/software/emacs/manual/html_node/emacs/Debuggers.html
____

They all let you go step by step.

      reply	other threads:[~2021-06-24 20:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-24 15:53 Tip: Debugging with function `message-box' Jean Louis
2021-06-24 18:49 ` [External] : " Drew Adams
2021-06-24 19:31   ` Jean Louis
2021-06-24 20:19     ` Drew Adams [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=SA2PR10MB4474D8BD6705D0E8FF29AF3FF3079@SA2PR10MB4474.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=bugs@gnu.support \
    --cc=help-gnu-emacs@gnu.org \
    /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.