www.delorie.com/gnu/docs/elisp-manual-21/elisp_223.html   search  
Buy the book!

GNU Emacs Lisp Reference Manual

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

18. Debugging Lisp Programs

There are three ways to investigate a problem in an Emacs Lisp program, depending on what you are doing with the program when the problem appears.

18.1 The Lisp Debugger  How the Emacs Lisp debugger is implemented.
18.2 Edebug  A source-level Emacs Lisp debugger.
18.3 Debugging Invalid Lisp Syntax  How to find syntax errors.
18.4 Debugging Problems in Compilation  How to find errors that show up in byte compilation.

Another useful debugging tool is the dribble file. When a dribble file is open, Emacs copies all keyboard input characters to that file. Afterward, you can examine the file to find out what input was used. See section 40.8 Terminal Input.

For debugging problems in terminal descriptions, the open-termscript function can be useful. See section 40.9 Terminal Output.

  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003