I’m doing increasingly complex stuff in automations (server side) because we’ve got far too much data to do this on the client.
Debugging JS from UI Bakery turned out to be rudimentary and thus very time consuming.
I’d ask UI Bakery to enable remote debug connections from VS Code to the automations container, enabling breakpoints, single-steps etc.
I know that UI Bakery is supposed to be a “low-code solution”, but in a real-world, legacy environment you end up writing hundreds of lines of JS code, anyway, to make the data digestible to UI Bakery.