help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to get full value of variable during edebug function tracing?


From: Arthur Miller
Subject: Re: How to get full value of variable during edebug function tracing?
Date: Mon, 20 Jun 2022 07:35:44 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Arthur Miller <arthur.miller@live.com> writes:
>
>> That sounds useful. Could you pop it up in a tooltip?
>
> The main point of this is to allow the user to interact with the value,
> which a tooltip doesn't help with.

One does not exclude the other?

Anyway, I just replied on what you wrote:

> That's what I do, too, but it's kinda cumbersome, isn't it?  So I've now
> made `C-u e' in edebug in Emacs 29 pop up a new buffer and pretty-print
> the value.

If you just pretty print it in a separate buffer, it is almost as good as in a
tooltip, but can be a bit distracting depending on how Emacs chose to split
buffer. Didn't have time to build and test your code, my build is like two weeks
old or so.

>> What about using mouse pointer as a "secondary cursor", if we would
>> like to see some previous value, so we don't have to move cursor
>> around:
>
> [...]
>
>> Could that be useful to have on a C-u C-u e?
>
> It sounds like a quite specialised use case.

Examining the value of a variable while debugging?

For me it is a normal thing. I press 'e' and then type the name of a variable,
or I sometimes move curser at the end of var/expression and press C-x C-e. Would
be nice if edebug instrumented code with help-echo to display values, or even
the doc together with the value, similar as in help buffer but in a
tooltip. That way we could just move the pointer over symbols and quickly see
values/docs, instead of pressing e and typing.



reply via email to

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