[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Insert edebug breakpoint into code
From: |
Drew Adams |
Subject: |
RE: Insert edebug breakpoint into code |
Date: |
Sun, 22 Jul 2018 09:36:01 -0700 (PDT) |
> 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'.