Mercurial > emacs
comparison lispref/debugging.texi @ 25875:6a17c48b52ef
*** empty log message ***
author | Phillip Rulon <pjr@gnu.org> |
---|---|
date | Tue, 05 Oct 1999 23:26:05 +0000 |
parents | 467b88fab665 |
children | a393c5e46e99 |
comparison
equal
deleted
inserted
replaced
25874:906a123add31 | 25875:6a17c48b52ef |
---|---|
135 | 135 |
136 @strong{Warning:} @code{debug-on-signal} has no effect when | 136 @strong{Warning:} @code{debug-on-signal} has no effect when |
137 @code{debug-on-error} is @code{nil}. | 137 @code{debug-on-error} is @code{nil}. |
138 @end defopt | 138 @end defopt |
139 | 139 |
140 To debug an error that happens during loading of the @file{.emacs} | 140 To debug an error that happens during loading of the init |
141 file, use the option @samp{--debug-init}, which binds | 141 file, use the option @samp{--debug-init}. This binds |
142 @code{debug-on-error} to @code{t} while loading @file{.emacs}, and | 142 @code{debug-on-error} to @code{t} while loading the init file., and |
143 bypasses the @code{condition-case} which normally catches errors in the | 143 bypasses the @code{condition-case} which normally catches errors in the |
144 init file. | 144 init file. |
145 | 145 |
146 If your @file{.emacs} file sets @code{debug-on-error}, the effect may | 146 If your init file sets @code{debug-on-error}, the effect may |
147 not last past the end of loading @file{.emacs}. (This is an undesirable | 147 not last past the end of loading the init file. (This is an undesirable |
148 byproduct of the code that implements the @samp{--debug-init} command | 148 byproduct of the code that implements the @samp{--debug-init} command |
149 line option.) The best way to make @file{.emacs} set | 149 line option.) The best way to make the init file set |
150 @code{debug-on-error} permanently is with @code{after-init-hook}, like | 150 @code{debug-on-error} permanently is with @code{after-init-hook}, like |
151 this: | 151 this: |
152 | 152 |
153 @example | 153 @example |
154 (add-hook 'after-init-hook | 154 (add-hook 'after-init-hook |