Currently, HexDebug's HexDebugger is forced to reimplement all of CastingVM.queueExecuteAndWrapIotas in order to implement debug features like breakpoints and stepping. If queueExecuteAndWrapIotas were refactored into separate functions for setup, main loop body, and teardown, HexDebug's implementation could be made significantly simpler and easier to keep up to date with future CastingVM changes.
Currently, HexDebug's HexDebugger is forced to reimplement all of
CastingVM.queueExecuteAndWrapIotasin order to implement debug features like breakpoints and stepping. IfqueueExecuteAndWrapIotaswere refactored into separate functions for setup, main loop body, and teardown, HexDebug's implementation could be made significantly simpler and easier to keep up to date with futureCastingVMchanges.