UP | HOME
RSS | Source | License

Debug in Emacs

Table of Contents

This is a note on debugging in Emacs.

1 Break

debug

debug-on-entry
enter the debugger when a function is called
cancel-debug-on-entry
As the name suggests
toggle-debug-on-error
whether to enter the debugger if an error occurs

edebug

edebug-defun / C-u eval-defun
instrument function to enter stepper when the function runs. To cancel the instrument, simply use eval-defun to reevaluate the function normally.

2 Stepper

Complete list of operations in Modes, Jumping, Misc, Breaks section

Some common ones:

n
step
q
quit
r
re-display last value in echo area
b
set break point, use C-u to set a one-time break point
x
set break condition
c
continue

Written by Yuan Fu <casouri@gmail.com>

First Published on 2019-10-05 Sat 14:31

Last modified on 2020-02-03 Mon 23:01