From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.devel Subject: Debugging functions with lexical-binding Date: Sat, 28 May 2011 15:50:33 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1306590661 2178 80.91.229.12 (28 May 2011 13:51:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 28 May 2011 13:51:01 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 28 15:50:57 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QQJuq-0002Qq-Oy for ged-emacs-devel@m.gmane.org; Sat, 28 May 2011 15:50:56 +0200 Original-Received: from localhost ([::1]:60927 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQJuq-00060X-7p for ged-emacs-devel@m.gmane.org; Sat, 28 May 2011 09:50:56 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:53799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQJum-0005wf-Mb for emacs-devel@gnu.org; Sat, 28 May 2011 09:50:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QQJul-0003kG-Ui for emacs-devel@gnu.org; Sat, 28 May 2011 09:50:52 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:60582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQJul-0003kB-Oz for emacs-devel@gnu.org; Sat, 28 May 2011 09:50:51 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QQJuj-0002NM-Hs for emacs-devel@gnu.org; Sat, 28 May 2011 15:50:49 +0200 Original-Received: from 212.46.177.84 ([212.46.177.84]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 28 May 2011 15:50:49 +0200 Original-Received: from eller.helmut by 212.46.177.84 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 28 May 2011 15:50:49 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 18 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 212.46.177.84 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:Ydi84HYQPj72mn1pnOS7yNFJcfs= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:139834 Archived-At: 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