Skip to content

feat(debugger): update ratatui, use List#7676

Merged
DaniPopes merged 3 commits into
masterfrom
dani/update-debugger
Apr 16, 2024
Merged

feat(debugger): update ratatui, use List#7676
DaniPopes merged 3 commits into
masterfrom
dani/update-debugger

Conversation

@DaniPopes

@DaniPopes DaniPopes commented Apr 15, 2024

Copy link
Copy Markdown
Member

Update ratatui from 0.24 to 0.26, the only observable breaking change is Layout builder method params were moved to the new method.

Use builtin List widget to handle printing opcodes. This fixes a bunch of logic errors with that code that nobody wants to debug by removing it.
Differences:

  • the highlight symbol is before the index instead of the opcode name
  • 1 opcode padding instead of whatever that code did, meaning the highlight will stop 1 before the end
    • this would just go off screen if the box was too small
  • the highlight spans across the entire box rather than just behind the text

Some other misc fixes:

  • generate the opcode list after the event has been handled. Fixes a small bug when changing call context as the opcode list would be the wrong one until another event was handled
  • clamp repeat number (e.g. 1000k) to 1..=100_000
  • sync mouse wheel step and keyboard step logic
  • don't reset memory view when stepping

Before

Peek 2024-04-16 00-57

After

Peek 2024-04-16 00-56

@mattsse mattsse requested a review from klkvr April 15, 2024 23:22
@DaniPopes DaniPopes merged commit 9207b93 into master Apr 16, 2024
@DaniPopes DaniPopes deleted the dani/update-debugger branch April 16, 2024 18:01
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.

2 participants