diff options
| author | Glenn Morris | 2012-11-12 18:25:59 -0800 |
|---|---|---|
| committer | Glenn Morris | 2012-11-12 18:25:59 -0800 |
| commit | f78ee6afc094cdfd6162bfd645836e84875dcddf (patch) | |
| tree | 3a2c4f5d6441e53adadb69ed2af0b64abf3cf239 /doc/lispref/debugging.texi | |
| parent | b95a9c0cba301ef8f1920a1d123ccd6873c14a63 (diff) | |
| parent | f8705f6e3102454bf1e3213956eb3ac8160ff047 (diff) | |
| download | emacs-f78ee6afc094cdfd6162bfd645836e84875dcddf.tar.gz emacs-f78ee6afc094cdfd6162bfd645836e84875dcddf.zip | |
Merge from emacs-24; up to 2012-11-09T14:45:15Z!dmantipov@yandex.ru
Diffstat (limited to 'doc/lispref/debugging.texi')
| -rw-r--r-- | doc/lispref/debugging.texi | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/doc/lispref/debugging.texi b/doc/lispref/debugging.texi index 2226db942d1..11532b19781 100644 --- a/doc/lispref/debugging.texi +++ b/doc/lispref/debugging.texi | |||
| @@ -117,12 +117,12 @@ has any of those condition symbols, or if the error message matches | |||
| 117 | any of the regular expressions, then that error does not enter the | 117 | any of the regular expressions, then that error does not enter the |
| 118 | debugger. | 118 | debugger. |
| 119 | 119 | ||
| 120 | The normal value of this variable lists several errors that happen | 120 | The normal value of this variable includes @code{user-error}, as well |
| 121 | often during editing but rarely result from bugs in Lisp programs. | 121 | as several errors that happen often during editing but rarely result |
| 122 | However, ``rarely'' is not ``never''; if your program fails with an | 122 | from bugs in Lisp programs. However, ``rarely'' is not ``never''; if |
| 123 | error that matches this list, you may try changing this list to debug | 123 | your program fails with an error that matches this list, you may try |
| 124 | the error. The easiest way is usually to set | 124 | changing this list to debug the error. The easiest way is usually to |
| 125 | @code{debug-ignored-errors} to @code{nil}. | 125 | set @code{debug-ignored-errors} to @code{nil}. |
| 126 | @end defopt | 126 | @end defopt |
| 127 | 127 | ||
| 128 | @defopt eval-expression-debug-on-error | 128 | @defopt eval-expression-debug-on-error |
| @@ -163,6 +163,14 @@ supported values correspond to the signals @code{SIGUSR1} and | |||
| 163 | @code{inhibit-quit} is set and Emacs is not otherwise responding. | 163 | @code{inhibit-quit} is set and Emacs is not otherwise responding. |
| 164 | @end defopt | 164 | @end defopt |
| 165 | 165 | ||
| 166 | @cindex message, finding what causes a particular message | ||
| 167 | @defvar debug-on-message | ||
| 168 | If you set @code{debug-on-message} to a regular expression, | ||
| 169 | Emacs will enter the debugger if it displays a matching message in the | ||
| 170 | echo area. For example, this can be useful when trying to find the | ||
| 171 | cause of a particular message. | ||
| 172 | @end defvar | ||
| 173 | |||
| 166 | To debug an error that happens during loading of the init | 174 | To debug an error that happens during loading of the init |
| 167 | file, use the option @samp{--debug-init}. This binds | 175 | file, use the option @samp{--debug-init}. This binds |
| 168 | @code{debug-on-error} to @code{t} while loading the init file, and | 176 | @code{debug-on-error} to @code{t} while loading the init file, and |
| @@ -314,6 +322,7 @@ is a message describing the reason that the debugger was invoked (such | |||
| 314 | as the error message and associated data, if it was invoked due to an | 322 | as the error message and associated data, if it was invoked due to an |
| 315 | error). | 323 | error). |
| 316 | 324 | ||
| 325 | @vindex debugger-bury-or-kill | ||
| 317 | The backtrace buffer is read-only and uses a special major mode, | 326 | The backtrace buffer is read-only and uses a special major mode, |
| 318 | Debugger mode, in which letters are defined as debugger commands. The | 327 | Debugger mode, in which letters are defined as debugger commands. The |
| 319 | usual Emacs editing commands are available; thus, you can switch windows | 328 | usual Emacs editing commands are available; thus, you can switch windows |
| @@ -322,8 +331,12 @@ switch buffers, visit files, or do any other sort of editing. However, | |||
| 322 | the debugger is a recursive editing level (@pxref{Recursive Editing}) | 331 | the debugger is a recursive editing level (@pxref{Recursive Editing}) |
| 323 | and it is wise to go back to the backtrace buffer and exit the debugger | 332 | and it is wise to go back to the backtrace buffer and exit the debugger |
| 324 | (with the @kbd{q} command) when you are finished with it. Exiting | 333 | (with the @kbd{q} command) when you are finished with it. Exiting |
| 325 | the debugger gets out of the recursive edit and kills the backtrace | 334 | the debugger gets out of the recursive edit and buries the backtrace |
| 326 | buffer. | 335 | buffer. (You can customize what the @kbd{q} command does with the |
| 336 | backtrace buffer by setting the variable @code{debugger-bury-or-kill}. | ||
| 337 | For example, set it to @code{kill} if you prefer to kill the buffer | ||
| 338 | rather than bury it. Consult the variable's documentation for more | ||
| 339 | possibilities.) | ||
| 327 | 340 | ||
| 328 | When the debugger has been entered, the @code{debug-on-error} | 341 | When the debugger has been entered, the @code{debug-on-error} |
| 329 | variable is temporarily set according to | 342 | variable is temporarily set according to |