help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to stop all edebug?


From: HaiJun Zhang
Subject: Re: How to stop all edebug?
Date: Thu, 24 Oct 2019 14:10:45 +0000

在 2019年10月24日 +0800 PM9:13,Michael Heerdegen <address@hidden>,写道:
HaiJun Zhang <address@hidden> 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."
(interactive)
(let ((functions nil))
(mapatoms
(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)))))
obarray)
(if (not functions)
(message "Found no functions to remove instrumentation from")
(message "Remove edebug instrumentation from %s"
(mapconcat #'symbol-name functions ", ")))))
#+end_src

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

Regards,

Michael.

I tried. It works in 26.3.

Thanks.


reply via email to

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