]> git.eshelyaron.com Git - emacs.git/commitdiff
Explain how to debug emacsclient lisp errors
authorNoam Postavsky <npostavs@gmail.com>
Sat, 22 Oct 2016 15:52:14 +0000 (11:52 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Sat, 22 Oct 2016 16:06:29 +0000 (12:06 -0400)
* doc/lispref/debugging.texi (Error Debugging): Mention that
debug-on-signal is useful for getting backtraces from
emacsclient (Bug#24616).

doc/lispref/debugging.texi

index c88a2fa60e026e47223e04386e9173cde2d02d89..371934377a89a2f816cf4001381521e39c4f5cf7 100644 (file)
@@ -152,6 +152,13 @@ presence of @code{condition-case}.  (To invoke the debugger, the error
 must still fulfill the criteria specified by @code{debug-on-error} and
 @code{debug-ignored-errors}.)
 
+@cindex emacsclient, getting a backtrace
+@cindex backtrace from emacsclient's @option{--eval}
+For example, setting this variable is useful to get a backtrace from
+code evaluated by emacsclient's @option{--eval} option.  If Lisp code
+evaluated by emacsclient signals an error while this variable is
+non-@code{nil}, the backtrace will popup in the running Emacs.
+
 @strong{Warning:} Setting this variable to non-@code{nil} may have
 annoying effects.  Various parts of Emacs catch errors in the normal
 course of affairs, and you may not even realize that errors happen