There are several ways to find and investigate problems in an Emacs Lisp program.
trace-function-backgroundfor tracing function calls, and
trace-valuesfor 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
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.|