diff options
| author | Noam Postavsky | 2016-10-22 11:52:14 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2016-10-22 12:06:29 -0400 |
| commit | b2ba630739cf12db939cdcfe9cd19b6a7fdfbf97 (patch) | |
| tree | 47a1e3b6e3f03c77eb72ccb2effe48085c908913 /doc/lispref/debugging.texi | |
| parent | 9da53e2d353c97ab955fe8c35482b5eb335316c1 (diff) | |
| download | emacs-b2ba630739cf12db939cdcfe9cd19b6a7fdfbf97.tar.gz emacs-b2ba630739cf12db939cdcfe9cd19b6a7fdfbf97.zip | |
Explain how to debug emacsclient lisp errors
* doc/lispref/debugging.texi (Error Debugging): Mention that
debug-on-signal is useful for getting backtraces from
emacsclient (Bug#24616).
Diffstat (limited to 'doc/lispref/debugging.texi')
| -rw-r--r-- | doc/lispref/debugging.texi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/lispref/debugging.texi b/doc/lispref/debugging.texi index c88a2fa60e0..371934377a8 100644 --- a/doc/lispref/debugging.texi +++ b/doc/lispref/debugging.texi | |||
| @@ -152,6 +152,13 @@ presence of @code{condition-case}. (To invoke the debugger, the error | |||
| 152 | must still fulfill the criteria specified by @code{debug-on-error} and | 152 | must still fulfill the criteria specified by @code{debug-on-error} and |
| 153 | @code{debug-ignored-errors}.) | 153 | @code{debug-ignored-errors}.) |
| 154 | 154 | ||
| 155 | @cindex emacsclient, getting a backtrace | ||
| 156 | @cindex backtrace from emacsclient's @option{--eval} | ||
| 157 | For example, setting this variable is useful to get a backtrace from | ||
| 158 | code evaluated by emacsclient's @option{--eval} option. If Lisp code | ||
| 159 | evaluated by emacsclient signals an error while this variable is | ||
| 160 | non-@code{nil}, the backtrace will popup in the running Emacs. | ||
| 161 | |||
| 155 | @strong{Warning:} Setting this variable to non-@code{nil} may have | 162 | @strong{Warning:} Setting this variable to non-@code{nil} may have |
| 156 | annoying effects. Various parts of Emacs catch errors in the normal | 163 | annoying effects. Various parts of Emacs catch errors in the normal |
| 157 | course of affairs, and you may not even realize that errors happen | 164 | course of affairs, and you may not even realize that errors happen |