Function: cancel-debug-on-entry
cancel-debug-on-entry is an autoloaded, interactive and byte-compiled
function defined in debug.el.gz.
Signature
(cancel-debug-on-entry &optional FUNCTION)
Documentation
Undo effect of M-x debug-on-entry (debug-on-entry) on FUNCTION.
If FUNCTION is nil, cancel debug-on-entry for all functions.
When called interactively, prompt for FUNCTION in the minibuffer.
To specify a nil argument interactively, exit with an empty minibuffer.
Probably introduced at or before Emacs version 1.2.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/debug.el.gz
;;;###autoload
(defun cancel-debug-on-entry (&optional function)
"Undo effect of \\[debug-on-entry] on FUNCTION.
If FUNCTION is nil, cancel `debug-on-entry' for all functions.
When called interactively, prompt for FUNCTION in the minibuffer.
To specify a nil argument interactively, exit with an empty minibuffer."
(interactive
(list (let ((name
(completing-read
"Cancel debug on entry to function (default all functions): "
(mapcar #'symbol-name (debug--function-list)) nil t)))
(when name
(unless (string= name "")
(intern name))))))
(if function
(progn
(advice-remove function #'debug--implement-debug-on-entry)
function)
(message "Canceling debug-on-entry for all functions")
(mapcar #'cancel-debug-on-entry (debug--function-list))))