FluffyLabs / pvm-debugger

1 stars 1 forks source link

Highlighting improvements #160

Closed tomusdrw closed 6 days ago

tomusdrw commented 1 week ago

We are highlighting current instruction in the code based on the PC, but there are some quirks.

  1. The scroll should follow current highlight - if the code is long and scrollable (see #159 for code example) highlighted instruction should always be shown (as much as possible) in the middle of the screen.

  2. In case multiple PVMs diverge we should show both PVMs positions. We should do that by highlighting with color calculated as follows rgba(higlight_color, opacity) where opacity = number_of_pvms_at_that_pc / total_number_of_pvms. Additionally we should display a tooltip indicating which PVM(s) are at this instruction (but only in case of divergence, if all agree = no tooltip).