[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Look for strace/ltrace analog for elisp.
From: |
Stefan Monnier |
Subject: |
Re: Look for strace/ltrace analog for elisp. |
Date: |
Sun, 13 May 2012 10:34:04 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
> I expect ability to call something like::
> (trace BODY)
> and get output like::
> { foo
> *{ bar
> **{ concat
> **} concat: result: "XXX"
> **{ +
> **} +: result: 20
> *} bar: result: 20
> } foo: result: 20
We don't really have this kind of `trace' function. Instead we have
`trace-function'. So if you called trace-function on `foo', `bar',
`concat', and `+', then (eval BODY) would have put a trace like the one
you show in *trace-output*.
Stefan