Previous: Compiling, Up: Getting Emacs

2.3 How do I use a debugger on Emacs?

By default, Emacs is compiled with debugging on, and optimizations enabled. The optimizations may interfere with some types of debugging; the debugger may not show clearly where it is, or may not be able to inspect certain variables. If this is the case, reconfigure with --no-opt.

The file etc/DEBUG contains general debugging hints, as well as specific notes about debugging Emacs with both gdb and Microsoft debuggers.