Normally the easiest way to debug is using printf. What can I do to debug emacs-lisp? How can I print something to emacs editor from elisp? Or is there any way to debug elisp code?
For example, how can I check if the following code is run in .emacs file?
(load "auctex.el" nil t t)