How do I use a debugger on Emacs?
Emacs is just like any other Win32 application compiled and linked using MSVC, and it can be debugged using Win32 debuggers like DevStudio. By default, Emacs will compile with debugging options turned on. Once compiled, you should be able to load either temacs.exe, the undumped executable, or emacs.exe, the dumped executable, into the debugger (almost always you will want to debug emacs.exe). Before you run it in the debugger, though, you will need to have the Emacs environment variables set in your shell so that the Emacs process uses the lisp and data files of the development tree instead of an installed version of Emacs. You can either set these variables by hand, or you can use the debug.bat batch file created in the nt subdirectory and installed in the bin directory. This batch file will set the appropriate environment variables and run msdev on the emacs.exe executable installed in the bin directory. Note that Emacs has conventions for naming built-in C identifiers corresponding