Here's a little project that makes testing KRL expressions easier.
I just built a simple KRL declaration evaluator that you can use to run KRL declarations and see the results. Here's a screenshot:
The sad part is this only took about three hours because all the pieces were just lying around in the code that makes picos work. I just had to hook them up. This is going to save me a lot of time. And I'm sure my students will enjoy it. Much nicer than adding logging statements, uploading the code to the pico, evaluating, and then looking at the logs. Why didn't I do this year ago?
I'm sure there are weird expression result I might not have accounted for. And the evaluator can't help with expressions that contain references to persistent variables, event attributes, and other expressions that only make sense in the context of a pico.
I made this work with the help of the Ace Editor, Bootstrap, and jQuery.