Open wixette opened 2 years ago
My understanding is we probably need to align with the design of a typical debugger/inspector somehow.
E.g., it's somehow hard to automatically notify users about the change of a
's element when b[2] = 10
is executed. But it's somehow easy to provide visualizers with a convenient interface to evaluate or retrieve the current values of a
's items whenever the visualizer wants to.
In this way, the visualizer can check a
's content each time a SingleStep notification is got, so that it will know the change of a
's content immediately when b[2] = 0
is executed. It's very much like adding a watcher/monitor of a variable to a typical debugger/inspector, right?
Just my two cents.
Given the following example code:
How can the visualizer know the content of the list
a
has been changed when it receives the assignment notification aboutb[2] = 10
?