help-gnu-emacs
[Top][All Lists]
Advanced

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

Look for strace/ltrace analog for elisp.


From: Oleksandr Gavenko
Subject: Look for strace/ltrace analog for elisp.
Date: Sun, 13 May 2012 13:51:35 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

In order to understand how work foreign code tracing is the best technique.

Like this do strace/ltrace.

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

where tracer print all called functions until BODY execution was finished.

It is convenient to have ability customise output details (like enabling or
skipping input args/return value, skipping call to some functions).

But for my purpose it is important to see names of setq, defun,
declare-function, defvar, etc... because I want to debug loading of elisp
library.

I try use edebug-trace-mode but seems this is not that I look.

-- 
Best regards!




reply via email to

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