There are several ways to find and investigate problems in an Emacs Lisp program.
trace-function-foreground
and trace-function-background
for tracing function calls, and trace-values
for adding values of select variables to the trace. For the details, see the documentation of these facilities in trace.el. Other useful tools for debugging input and output problems are the dribble file (see Terminal Input) and the open-termscript
function (see Terminal Output).
• Debugger: | A debugger for the Emacs Lisp evaluator. | |
• Edebug: | A source-level Emacs Lisp debugger. | |
• Syntax Errors: | How to find syntax errors. | |
• Test Coverage: | Ensuring you have tested all branches in your code. | |
• Profiling: | Measuring the resources that your code uses. |
Copyright © 1990-1996, 1998-2019 Free Software Foundation, Inc.
Licensed under the GNU GPL license.
https://www.gnu.org/software/emacs/manual/html_node/elisp/Debugging.html