all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Debugging functions with lexical-binding
@ 2011-05-28 13:50 Helmut Eller
  2011-05-30  4:13 ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Helmut Eller @ 2011-05-28 13:50 UTC (permalink / raw)
  To: emacs-devel

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.]

Helmut




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-05-31 15:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-28 13:50 Debugging functions with lexical-binding Helmut Eller
2011-05-30  4:13 ` Stefan Monnier
2011-05-31  7:11   ` Helmut Eller
2011-05-31 15:25     ` Stefan Monnier

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.