Dexed debugger UI now supports inspection of the variables based on mouse motion
Basile B.
b2.temp at gmx.com
Thu Feb 13 13:24:58 UTC 2020
On Thursday, 13 February 2020 at 09:06:26 UTC, Basile B. wrote:
> I don't know why I havent implemented this earlier as it was
> quite simple. It's basically the same as when you evaluate a
> custom expression excepted that you use the mouse position to
> extract a (more or less, TBH) precise unary expression.
>
> https://imgur.com/a/e4urRY9
>
> Only problem is that GDB requires explicit dereferences, that
> are normally automatic in D semantic, so big chain of
> identifiers wont work and display '???'.
>
> Example:
>
> for D : a.d.c.somevar
> GDB needs : (*a).(*d).(*c).somevar
>
> if a,d and c are classes or struct pointers. So far dexed will
> display
>
> ______________________________________
> exp: a.d.c.somevar
> ---
> (result of -data-evaluate $exp)
> ---
> (result of -data-evaluate *$exp)
> ______________________________________
>
> so only one dereference. And in the a.d.c.somevar example this
> would not work.
related commit
https://gitlab.com/basile.b/dexed/-/commit/7a049959214db2e8818131b6943724e2b3a15ee5
More information about the Digitalmars-d-debugger
mailing list