Álvaro Ramírez
Emacs lisp debug on entry
Wanted to track down which package was enabling ido-mode on my behalf. debug-on-entry to the rescue. Pass the method name in question and you're good to go.
(debug-on-entry 'ido-mode)
When done, use cancel.
(cancel-debug-on-entry 'ido-mode)