* Debugging without debugger.
@ 2009-01-30 12:16 A. Soare
0 siblings, 0 replies; 3+ messages in thread
From: A. Soare @ 2009-01-30 12:16 UTC (permalink / raw)
To: Emacs Help [help-gnu-emacs]
How can I print lisp objects, without using the debugger?
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".
Can you help me please?
____________________________________________________
Écoutez en un clic votre musique préférée et découvrez de nouveaux titres en affinité avec vos goûts sur http://musiline.voila.fr
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Debugging without debugger.
[not found] <mailman.6230.1233317813.26697.help-gnu-emacs@gnu.org>
@ 2009-01-30 14:48 ` Pascal J. Bourguignon
2009-01-31 3:50 ` Barry Margolin
1 sibling, 0 replies; 3+ messages in thread
From: Pascal J. Bourguignon @ 2009-01-30 14:48 UTC (permalink / raw)
To: help-gnu-emacs
"A. Soare" <alinsoar@voila.fr> 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__
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Debugging without debugger.
[not found] <mailman.6230.1233317813.26697.help-gnu-emacs@gnu.org>
2009-01-30 14:48 ` Pascal J. Bourguignon
@ 2009-01-31 3:50 ` Barry Margolin
1 sibling, 0 replies; 3+ messages in thread
From: Barry Margolin @ 2009-01-31 3:50 UTC (permalink / raw)
To: help-gnu-emacs
In article <mailman.6230.1233317813.26697.help-gnu-emacs@gnu.org>,
"A. Soare" <alinsoar@voila.fr> wrote:
> How can I print lisp objects, without using the debugger?
Use the *scratch* buffer, which is normally in Lisp Interaction Mode.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-01-31 3:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-30 12:16 Debugging without debugger A. Soare
[not found] <mailman.6230.1233317813.26697.help-gnu-emacs@gnu.org>
2009-01-30 14:48 ` Pascal J. Bourguignon
2009-01-31 3:50 ` Barry Margolin
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.