# HG changeset patch # User Oleksandr Gavenko # Date 1235478640 -7200 # Node ID 735e016c8d308eba9dfe5cb99634f33ba921eb12 # Parent 573572e9b2f8330d0b06492e56a905cb15e2e892 how debug emacs diff -r 573572e9b2f8 -r 735e016c8d30 emacs.rst --- a/emacs.rst Tue Feb 24 14:29:31 2009 +0200 +++ b/emacs.rst Tue Feb 24 14:30:40 2009 +0200 @@ -1,6 +1,6 @@ -*- mode: outline -*- -* How debug? +* How debug ini file? When your InitFile has a bug, or when you load external files that cause errors, the bug is often hard to find, because the Emacs Lisp reader does not @@ -35,3 +35,10 @@ You can disable edebug on a function by evaluating the function again using ‘C-M-x’. + +* How debug func? + +Use M-x debug-on-entry and M-x cancel-debug-on-entry to control +which functions will enter the debugger when called. + +When next time that function called automatically loaded debug-mode.