[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging without debugger.

From: Pascal J. Bourguignon
Subject: Re: Debugging without debugger.
Date: Fri, 30 Jan 2009 15:48:09 +0100
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.2 (gnu/linux)

"A. Soare" <address@hidden> writes:

> How can I print lisp objects, without using the debugger?

(print lisp-object)

> I see that there is the function `debug_print`, but I do not know how to 
> redirect its output to a file like "/emacs-session-debug".

(with-temp-file "/tmp/emacs-session-debug"
  (print lisp-object (current-buffer)))

You can type these forms followed by C-x C-e in a scratch buffer,
or you could launch the REPL: M-x ielm RET and type these forms followed by RET.

__Pascal Bourguignon__

reply via email to

[Prev in Thread] Current Thread [Next in Thread]