App support for stepping through user code?

With the debut of the interactive debugger, I was wondering if the landscape for an app providing the feature of stepping through user provided code had changed.

For context, I have an app that I use for intro to coding students that provides a simple IDE for moving a robot around a 2d world: https://duckcoding.anvil.app/ The app uses eval to execute user code that then calls out to functions in my app to perform actions.

This is an online clone of Rurple, a desktop application. Right now the online version doesn’t allow users to single step through their code, and can’t highlight lines of code as they execute.

I could highlight some lines (the ones that call out to functions in my app), but that’s not as useful as being able to highlight each line as it executes, or allow single stepping.

Back when I wrote the app I didn’t see a good way of doing that in Anvil. I’m hoping that’s changed now.

1 Like