Übersicht Letzte Änderungen Neuigkeiten Suchen ElispSektion KurzAnleitung Impressum
Eritrea: Erklärung der Unabhängigkeit 1993

DebuggerMode

Debugger mode is the mode used in the BacktraceBuffer (buffer ‘*Backtrace*’).

Use ‘C-h m’ there to see descriptions of the important debugger keys, which include ‘c’ (current sexp) ‘d’ (single step), ‘e’ (eval another sexp that you input), and ‘q’ (quit). (‘C-h m’ always gives you information on the current mode, whatever it might be.)

debug-on-quit
Debugger is entered when the user hits ‘C-g’. This is useful in debugging infinite loops and long delays. You can toggle this variable using ‘M-x toggle-debug-on-quit’.
debug-on-error
Debugger is entered when an uncaught error happens. This is foiled by condition-case forms that catch errors. You can toggle this variable using ‘M-x toggle-debug-on-error’. Note that some errors are ignored – you may have to temporarily set ‘debug-ignored-errors’ to ‘nil’ in order to debug such errors.
stack-trace-on-error
An alternative to ‘debug-on-error’. It shows trace buffers instead of entering the debugger. Example: (setq stack-trace-on-error '(buffer-read-only))

In addition to debugger-mode there is also Edebug. See SourceLevelDebugger for more information.

Discussion


CategoryDebug CategoryCode CategoryModes