hannobraun / caterpillar

An experimental project to create an interactive programming language.
https://capi.hannobraun.com/
Other
15 stars 0 forks source link

Debugger should display "step" buttons next to the active instruction #36

Closed hannobraun closed 2 days ago

hannobraun commented 1 month ago

Currently, the step button is displayed above the active functions view. (As of this writing, there is only "Step Into". I expect that we'll also have "Step Over", "Step Return", and eventually more buttons to rewind.)

Screenshot from 2024-08-10 13-41-33

This is problematic in two ways:

Both of those issues can be solved by moving the buttons right next to, preferably to the right of, the active expression.

hannobraun commented 1 month ago

This is related to https://github.com/hannobraun/caterpillar/issues/35, which should probably be addressed first, or together with this issue. Otherwise, things might get confusing, if the step buttons are not even visible when relevant.

hannobraun commented 2 days ago

I decided to address this without looking into #35 for now. So much is broken in the debugger anyway right now, and addressing this has helped me unlock some fixes.