From: Drew Adams <drew.adams@oracle.com>
To: Joe Riel <joer@san.rr.com>, Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: RE: Insert edebug breakpoint into code
Date: Sun, 22 Jul 2018 09:36:01 -0700 (PDT) [thread overview]
Message-ID: <25a1a366-6a9b-4f4a-8770-068c25687c8e@default> (raw)
In-Reply-To: <20180722092536.675138bb@gauss>
> Is it possible to insert lisp code that
> forces an edebug breakpoint at a particular place?
>
> I don't want to have to interactively insert the breakpoint
> from inside the debugger, but rather make it part of the
> code when it is evaluated.
Dunno about Edebug - I never use it.
But for the regular Emacs debugger, just insert a call
to function `debug' wherever you want to enter the
debugger. `C-h f debug' tells you:
____
(debug &rest ARGS)
Enter debugger. 'c' returns from the debugger.
Arguments are mainly for use when this is called from the internals
of the evaluator.
You may call with no args, or you may pass nil as the first arg and
any other args you like. In that case, the list of args after the
first will be printed into the backtrace buffer.
____
But see the Elisp manual for more info. The most used
key is `d', not `c'. Dunno why the doc string doesn't
mention `d'.
next prev parent reply other threads:[~2018-07-22 16:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-22 16:25 Insert edebug breakpoint into code Joe Riel
2018-07-22 16:36 ` Drew Adams [this message]
2018-07-22 16:46 ` Xu Chunyang
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=25a1a366-6a9b-4f4a-8770-068c25687c8e@default \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=joer@san.rr.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).