[Top][All Lists]

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

Debugging functions with lexical-binding

From: Helmut Eller
Subject: Debugging functions with lexical-binding
Date: Sat, 28 May 2011 15:50:33 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

What are the commands to inspect local variables of lexical functions?

E.g. if we have code like

;; -*- lexical-binding: t -*- 
(defun foo (x y) (debug nil x y) y)

and call (foo 1 2) we end up in the debugger.  Usually one can just type
"e y" to see the value of y, but with lexical binding that doesn't work.
So what is the replacement?

[BTW, the debugger now enters recursively if an error occurs during
debugger-eval-expression.  That's almost certainly undesirable,
especially as there is no easy way to jump out of the recursive
evaluation.  Pressing C-M-c reduces one level of recursive edit but puts
the *Backtrace* buffer in fundamental-mode which is IMO also wrong.]


reply via email to

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