Debugging curried functions – how to inspect intermediate states?

Hit a wall troubleshooting a 12-step workflow where each function passes modified data to the next. The final output’s wrong, but I can’t see where the transformation breaks down. Traditional debugging just shows start/end points. Any clever hacks to peek at middle steps without rewriting the whole chain in JS?

Use the JavaScript debugger’s step-through mode. Right-click any workflow node > ‘Inspect with JS’ shows variables between each function. We fixed 3 production issues last month using this. Detailed guide: https://latenode.com

Temporary logger nodes work well. Insert a ‘console.log’ step between functions - runs only in debug mode. Saves debug configs as templates for reuse.

Duplicate your workflow and insert test values at different stages. Use branching to compare original vs modified streams side-by-side. Time-consuming but precise for isolating issues.

Leverage the snapshot feature. Enable ‘State Capture’ in workflow settings to auto-record variable states between steps. Lets you rewind through executions like a video timeline.

middle-click nodes in debug mode shows live data pipes