[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to stop all edebug?

From: Michael Heerdegen
Subject: Re: How to stop all edebug?
Date: Thu, 24 Oct 2019 15:13:07 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

HaiJun Zhang <> writes:

> I tried and it didn’t work. I eval
> `(edebug--edebug-on-entry-functions)` and it returns nil.

Oh well, correct again, that doesn't work as well, sorry for wasting
your time.

Ok, now I have tested that Lars' new `edebug-remove-instrumentation':

#+begin_src emacs-lisp
(defun edebug-remove-instrumentation ()
  "Remove Edebug instrumentation from all functions."
  (let ((functions nil))
     (lambda (symbol)
       (when (and (functionp symbol)
                  (get symbol 'edebug))
         (let ((unwrapped (edebug-unwrap* (symbol-function symbol))))
           (unless (equal unwrapped (symbol-function symbol))
             (push symbol functions)
             (setf (symbol-function symbol) unwrapped)))))
    (if (not functions)
        (message "Found no functions to remove instrumentation from")
      (message "Remove edebug instrumentation from %s"
               (mapconcat #'symbol-name functions ", ")))))

works for me at least in 26.1.  Can you please try that?  Just M-x



reply via email to

[Prev in Thread] Current Thread [Next in Thread]