Function: edebug-enter

edebug-enter is a byte-compiled function defined in edebug.el.gz.

Signature

(edebug-enter FUNC ARGS BODY)

Documentation

Enter Edebug for a function.

FUNC should be the symbol with the Edebug information, ARGS is the list of arguments and BODY is the code.

Look up the edebug-behavior for FUNC in edebug-behavior-alist and run its entry function, and set up edebug-before and edebug-after.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/edebug.el.gz
;;; Entering Edebug

(defun edebug-enter (func args body)
  "Enter Edebug for a function.
FUNC should be the symbol with the Edebug information, ARGS is
the list of arguments and BODY is the code.

Look up the `edebug-behavior' for FUNC in `edebug-behavior-alist'
and run its entry function, and set up `edebug-before' and
`edebug-after'."
  (cl-letf* ((behavior (get func 'edebug-behavior))
             (functions (cdr (assoc behavior edebug-behavior-alist)))
             ((symbol-function 'edebug-before) (nth 1 functions))
             ((symbol-function 'edebug-after) (nth 2 functions)))
    (funcall (nth 0 functions) func args body)))