|
From: | Joel Reicher |
Subject: | Re: Learning Edebug |
Date: | Sat, 21 Dec 2024 17:17:07 +1100 |
User-agent: | Gnus/5.13 (Gnus v5.13) |
I'm trying to learn how to use the Emacs lisp function Edebug, but so far am not having any success. The documentation says that I need to "instrument" the function that I want to debug, and I'm even having trouble with that. I've been programming in Emacs Lisp for over a decade, and have always found that print statements were sufficient for debugging my programs.
I think the other replies have good practical info, but just in case some conceptual info is useful, instrumenting code is basically what you've been doing with print statements. When edebug instruments the code and inserts its own debugging snippets, you can execute the code normally and the instrumentation that edebug inserted will call the edebug functionality.
The built-in lisp debugger works the "other" way; it affects the evaluation machinery rather than the code being evaluated.
Regards, - Joel
[Prev in Thread] | Current Thread | [Next in Thread] |