GNU bug report logs - #12685
24.2; lexical binding breaks edebug conditional breakpoints

Previous Next

Package: emacs;

Reported by: Toby Cubitt <toby-dated-1351883876.27e47e <at> dr-qubit.org>

Date: Fri, 19 Oct 2012 19:20:02 UTC

Severity: normal

Found in version 24.2

Fixed in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #34 received at 12685 <at> debbugs.gnu.org (full text, mbox):

From: Toby Cubitt <toby-dated-1376925293.868a15 <at> dr-qubit.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: egnarts-ms <egnartsms <at> gmail.com>, 12685 <at> debbugs.gnu.org
Subject: Re: bug#12685: 24.2; lexical binding breaks edebug conditional
 breakpoints
Date: Mon, 5 Aug 2013 16:14:46 +0100
[Message part 1 (text/plain, inline)]
Hi Stefan,

On Fri, Jul 26, 2013 at 12:09:05PM -0400, Stefan Monnier wrote:
> > Conditional breakpoints whose condition refers to a lexically-scoped
> > variable fail with a "Symbol's value as variable is void" error.
> > This is almost certainly caused by the same issue as
> > http://thread.gmane.org/gmane.emacs.devel/150556 
> 
> I've just installed a patch into trunk which should make Edebug properly
> use the lexical scope of the debugged code (when applicable).
> 
> Could you confirm it fixes this bug?

I just checked out and recompiled Emacs from bzr and tested. I'm still
seeing the same bug as before. Steps to reproduce:

1. Open the attached elisp file

2. Instrument `test' for edebug: "C-u C-M-x"

3. Evaluate `test': "M-: (test 3)"

4. Evaluate lexical variable from within edebug: "M-: arg <ret>"
-> backtrace buffer with "Debugger entered--Lisp error: (void-variable arg)"

3'. Create conditional breakpoint in `test': "C-x X x (null arg) <ret>"

4'. Evaluate `test': "M-: (test 3)"
-> message "Symbol's value as variable is void: arg"


Best,
Toby
-- 
Dr T. S. Cubitt
Royal Society University Research Fellow
Centre for Quantum Information and Foundations
DAMTP, University of Cambridge

email: tsc25 <at> cantab.net
web:   www.dr-qubit.org
[test.el (text/plain, attachment)]

This bug report was last modified 11 years and 289 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.