(lispref.info)Explicit Debug

Next: Using Debugger Prev: Function Debugging Up: Debugger

Explicit Entry to the Debugger

   You can cause the debugger to be called at a certain point in your
program by writing the expression `(debug)' at that point.  To do this,
visit the source file, insert the text `(debug)' at the proper place,
and type `C-M-x'.  Be sure to undo this insertion before you save the

   The place where you insert `(debug)' must be a place where an
additional form can be evaluated and its value ignored.  (If the value
isn't ignored, it will alter the execution of the program!)  Usually
this means inside a `progn' or an implicit `progn' (*note

automatically generated by info2www