Commit 2634c6e4 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Using Edebug): Arrow is in fringe.

(Instrumenting): Arg to eval-defun works without loading edebug.
(Edebug Execution Modes): Add xref.
parent 0111d1e1
...@@ -99,7 +99,7 @@ which stops execution. @xref{Edebug Execution Modes}. ...@@ -99,7 +99,7 @@ which stops execution. @xref{Edebug Execution Modes}.
the Lisp code you are debugging. This is referred to as the @dfn{source the Lisp code you are debugging. This is referred to as the @dfn{source
code buffer}, and it is temporarily read-only. code buffer}, and it is temporarily read-only.
An arrow at the left margin indicates the line where the function is An arrow in the left fringe indicates the line where the function is
executing. Point initially shows where within the line the function is executing. Point initially shows where within the line the function is
executing, but this ceases to be true if you move point yourself. executing, but this ceases to be true if you move point yourself.
...@@ -158,16 +158,15 @@ into it, to invoke Edebug at the proper places. ...@@ -158,16 +158,15 @@ into it, to invoke Edebug at the proper places.
@kindex C-M-x @kindex C-M-x
@findex eval-defun (Edebug) @findex eval-defun (Edebug)
Once you have loaded Edebug, the command @kbd{C-M-x} When you invoke command @kbd{C-M-x} (@code{eval-defun}) with a
(@code{eval-defun}) is redefined so that when invoked with a prefix prefix argument on a function definition, it instruments the
argument on a definition, it instruments the definition before definition before evaluating it. (This does not modify the source
evaluating it. (The source code itself is not modified.) If the code itself.) If the variable @code{edebug-all-defs} is
variable @code{edebug-all-defs} is non-@code{nil}, that inverts the non-@code{nil}, that inverts the meaning of the prefix argument: in
meaning of the prefix argument: in this case, @kbd{C-M-x} instruments the this case, @kbd{C-M-x} instruments the definition @emph{unless} it has
definition @emph{unless} it has a prefix argument. The default value of a prefix argument. The default value of @code{edebug-all-defs} is
@code{edebug-all-defs} is @code{nil}. The command @kbd{M-x @code{nil}. The command @kbd{M-x edebug-all-defs} toggles the value
edebug-all-defs} toggles the value of the variable of the variable @code{edebug-all-defs}.
@code{edebug-all-defs}.
@findex eval-region @r{(Edebug)} @findex eval-region @r{(Edebug)}
@findex eval-current-buffer @r{(Edebug)} @findex eval-current-buffer @r{(Edebug)}
...@@ -302,11 +301,12 @@ executing a keyboard macro outside of Edebug does not affect commands ...@@ -302,11 +301,12 @@ executing a keyboard macro outside of Edebug does not affect commands
inside Edebug. This is usually an advantage. See also the inside Edebug. This is usually an advantage. See also the
@code{edebug-continue-kbd-macro} option (@pxref{Edebug Options}). @code{edebug-continue-kbd-macro} option (@pxref{Edebug Options}).
When you enter a new Edebug level, the initial execution mode comes from When you enter a new Edebug level, the initial execution mode comes
the value of the variable @code{edebug-initial-mode}. By default, this from the value of the variable @code{edebug-initial-mode}.
specifies step mode. Note that you may reenter the same Edebug level (@xref{Edebug Options}.) By default, this specifies step mode. Note
several times if, for example, an instrumented function is called that you may reenter the same Edebug level several times if, for
several times from one command. example, an instrumented function is called several times from one
command.
@defopt edebug-sit-for-seconds @defopt edebug-sit-for-seconds
This option specifies how many seconds to wait between execution steps This option specifies how many seconds to wait between execution steps
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment