A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://endlessparentheses.com/debugging-emacs-lisp-part-1-earn-your-independence.html below:

Earn your independence ยท Endless Parentheses

  1. Go to where the function is defined. You can usually do that with C-h f (which calls describe function) or just M-x find-function.
  2. Press C-u C-M-x. This turns on Edebug for that function.
  3. Now, just invoke the function (or some other command that calls that function).

The next time the Edebugged function gets called, Emacs will display its source code and will take you through it step-by-step. Press n to continue to the next step or c to stop fooling around and skip to the end.

For instance, to solve the issue that lead me to write this, we could perform the following sequence of commands:

M-x find-function RET package-menu--generate RET
C-u C-M-x
M-x paradox-list-packages RET

Once a function has been instrumented, it will trigger Edebug every time it is called. To undo this effect (to remove instrumentation) simply visit its definition again and hit C-M-x without the prefix.q


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4