Skip to content

web: render local variables as decoded values (display hack, not for merge) - #270

Draft
gnidan wants to merge 1 commit into
mainfrom
ui-local-value-reduce
Draft

gnidan wants to merge 1 commit into
mainfrom
ui-local-value-reduce

Conversation

@gnidan

@gnidan gnidan commented Jul 16, 2026 •

Copy link
Copy Markdown
Member

This is the trace playground's display on top of #328, which emits the local variables. It is a hack for demos and is not meant to merge.

The trace drawer resolves each local to the pointer region named after it and decodes those bytes by the local's type: uint and int as decimal, bool, and address with an EIP-55 checksum; other kinds show as hex. The decoder lives with the display in programs-react's utils, not in @ethdebug/pointers. It also adds an address round-trip example to the trace playground.

@github-actions

github-actions Bot commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://ethdebug.github.io/format/pr-preview/pr-270/

Built to branch gh-pages at 2026-10-06 06:31 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@gnidan gnidan changed the title web/programs-react: render local variables as decoded, single values Local variable tracking: emit, decode, and render values in the tracer Jul 16, 2026
@gnidan
gnidan force-pushed the ui-local-value-reduce branch 3 times, most recently from a1d63c1 to a682ed6 Compare July 16, 2026 23:22
@gnidan
gnidan marked this pull request as draft September 3, 2026 04:23
@gnidan
gnidan force-pushed the ui-local-value-reduce branch 2 times, most recently from c3d5928 to 842fa71 Compare October 4, 2026 18:32
@gnidan
gnidan force-pushed the ui-local-value-reduce branch from 842fa71 to 4d80ed9 Compare October 6, 2026 03:24
@gnidan gnidan changed the title Local variable tracking: emit, decode, and render values in the tracer web: render local variables as decoded values (display hack, not for merge) Oct 6, 2026
@gnidan
gnidan changed the base branch from main to bugc-local-variables October 6, 2026 03:24
@gnidan
gnidan force-pushed the bugc-local-variables branch from 17aeaaf to 9c49042 Compare October 6, 2026 03:44
@gnidan
gnidan force-pushed the ui-local-value-reduce branch from 4d80ed9 to 7426c87 Compare October 6, 2026 03:45
@gnidan
gnidan force-pushed the bugc-local-variables branch from 9c49042 to 4f3ad96 Compare October 6, 2026 04:02
@gnidan
gnidan force-pushed the ui-local-value-reduce branch 2 times, most recently from 7426c87 to 5fd6c87 Compare October 6, 2026 04:04
@gnidan
gnidan force-pushed the bugc-local-variables branch from 4f3ad96 to 223d1cc Compare October 6, 2026 04:05
@gnidan
gnidan force-pushed the ui-local-value-reduce branch from 5fd6c87 to f1d55c7 Compare October 6, 2026 04:06
@gnidan
gnidan force-pushed the bugc-local-variables branch from 223d1cc to b3b2dc3 Compare October 6, 2026 04:44
@gnidan
gnidan force-pushed the ui-local-value-reduce branch from f1d55c7 to fdf0f77 Compare October 6, 2026 04:45
@gnidan
gnidan force-pushed the bugc-local-variables branch from b3b2dc3 to f038d43 Compare October 6, 2026 04:52
@gnidan
gnidan force-pushed the ui-local-value-reduce branch from fdf0f77 to e9ef80f Compare October 6, 2026 04:54
@gnidan
gnidan force-pushed the bugc-local-variables branch from f038d43 to 099ea41 Compare October 6, 2026 05:00
@gnidan
gnidan force-pushed the ui-local-value-reduce branch from e9ef80f to 6b5f441 Compare October 6, 2026 05:00
@gnidan
gnidan force-pushed the bugc-local-variables branch from 099ea41 to 314ba74 Compare October 6, 2026 05:09
@gnidan
gnidan force-pushed the ui-local-value-reduce branch from 6b5f441 to fdcad96 Compare October 6, 2026 05:11
@gnidan
gnidan force-pushed the bugc-local-variables branch from 314ba74 to cbf8bf0 Compare October 6, 2026 05:29
@gnidan
gnidan force-pushed the ui-local-value-reduce branch from fdcad96 to 1a2a6b1 Compare October 6, 2026 05:31
@gnidan
gnidan force-pushed the bugc-local-variables branch from cbf8bf0 to 82d0ed4 Compare October 6, 2026 05:53
@gnidan
gnidan force-pushed the ui-local-value-reduce branch from 1a2a6b1 to 218715c Compare October 6, 2026 05:55
@gnidan
gnidan force-pushed the bugc-local-variables branch from 82d0ed4 to dbc22e7 Compare October 6, 2026 06:01
@gnidan
gnidan force-pushed the ui-local-value-reduce branch from 218715c to cb3e3e5 Compare October 6, 2026 06:02
@gnidan
gnidan force-pushed the bugc-local-variables branch from dbc22e7 to 3410413 Compare October 6, 2026 06:18
@gnidan
gnidan force-pushed the ui-local-value-reduce branch from cb3e3e5 to bbfe3d9 Compare October 6, 2026 06:20
Base automatically changed from bugc-local-variables to main October 6, 2026 06:26
Resolve each local to the pointer region named after it, rather than
every region of its pointer, and decode the region's bytes to a value
by the local's type (replacing the raw formatAsDecimal fallback).

The decoder lives with the display, in programs-react's utils, and
decodes the exact bytes that bugc's pointers name: uint and int as
decimal, bool, and address with an EIP-55 checksum. Other kinds show
as hex.

Add an address round-trip trace-playground example (`idn(owner:
address)`) so a decoded, checksummed address is visible when stepping
into the call.
@gnidan
gnidan force-pushed the ui-local-value-reduce branch from bbfe3d9 to 98db766 Compare October 6, 2026 06:27

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant