emacs-devel
[Top][All Lists]
Advanced

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

Re: How to debug modification to a variable value?


From: Stefan Monnier
Subject: Re: How to debug modification to a variable value?
Date: Tue, 26 Jan 2010 16:02:05 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux)

>     It wouldn't be terribly hard to add one, I think.
> It would be very bad to use this hook for anything bug debugging,
> since it means that setting a variable could do anything whatsoever.
> So if such a featur one is added, it will be very important to make
> sure it isn't used except for debugging.

> One way is to design the feature so it always calls the debugger
> when activated.  For instance, if a certain flag is set in a symbol,
> then setting its value or function slot calls the debugger.

I was thinking of a variant of read-only, so `setq' (and `let') would
signal an error (and hence throw you in the debugger).


        Stefan




reply via email to

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