I wish there was some way of debugging complex Shortcuts programs; apart from printf’s that is. A logging trace function is not easy to write and would be very disruptive to add in.
Does anyone else have a better idea? I have some enormous Shortcuts programs with hundreds of actions in them.