summaryrefslogtreecommitdiff
path: root/lispref/debugging.texi
diff options
context:
space:
mode:
authorLute Kamstra <lute@gnu.org>2005-06-14 11:36:41 +0000
committerLute Kamstra <lute@gnu.org>2005-06-14 11:36:41 +0000
commitcf02d3ed214a099fa56b4007d472d69e46411de0 (patch)
tree33417ba68fbce128166b95558d7a347b01a5281b /lispref/debugging.texi
parentebb7de8462af1636e625e756c780d48034b65882 (diff)
(Function Debugging): Primitives can break on entry too.
Diffstat (limited to 'lispref/debugging.texi')
-rw-r--r--lispref/debugging.texi22
1 files changed, 13 insertions, 9 deletions
diff --git a/lispref/debugging.texi b/lispref/debugging.texi
index ae3fbdbb48..739dd1fe29 100644
--- a/lispref/debugging.texi
+++ b/lispref/debugging.texi
@@ -210,15 +210,19 @@ called shortly before the problem, step quickly over the call to that
function, and then step through its caller.
@deffn Command debug-on-entry function-name
-This function requests @var{function-name} to invoke the debugger each time
-it is called. It works by inserting the form @code{(debug 'debug)} into
-the function definition as the first form.
-
-Any function defined as Lisp code may be set to break on entry,
-regardless of whether it is interpreted code or compiled code. If the
-function is a command, it will enter the debugger when called from Lisp
-and when called interactively (after the reading of the arguments). You
-can't debug primitive functions (i.e., those written in C) this way.
+This function requests @var{function-name} to invoke the debugger each
+time it is called. It works by inserting the form
+@code{(implement-debug-on-entry)} into the function definition as the
+first form.
+
+Any function or macro defined as Lisp code may be set to break on
+entry, regardless of whether it is interpreted code or compiled code.
+If the function is a command, it will enter the debugger when called
+from Lisp and when called interactively (after the reading of the
+arguments). You can also set debug-on-entry for primitive functions
+(i.e., those written in C) this way, but it only takes effect when the
+primitive is called from Lisp code. Debug-on-entry is not allowed for
+special forms.
When @code{debug-on-entry} is called interactively, it prompts for
@var{function-name} in the minibuffer. If the function is already set