Is there a way to visually debug gmic scripts?

Hi,

Instead of a verbal debug, would it be possible to see what a script is doing in the background? The reason I asked is mainly because I know my rep_stitch script is theoretically possible to simplify and to be written in a manner that is far easier to convert into another programming language. As of now, it’s hard to know how to refactor the rep_stitch code. Even logically trying to break it down doesn’t get me anywhere.

I usually insert a d from time to time between commands. So far, it has been enough to understand what is going on with the image list.