📚 5. Best Practices
1. Reduce Code Runner Usage
Code Runner can cause performance issues
Use only when no other tool is available
Impact of Code Runner Usage: Extra execution time
Avoid using code runner in a loop.
💡 Better Alternative: Inline Transformations + Workflow Variables
Combination of Workflow Variables and Inline Transformations should be your first choice
They are lightweight and performant
Use these before considering Code Runner
2. Use Console Logs Wisely
Console Logs are helpful during development to debug and verify steps are working
For production workflows, minimize Console Logs to avoid performance degradation
Alternative: Use the Debugger option for debugging instead
Impact: Writing logs takes time and slows down workflow completion
How Debug Mode Works (Simple Example)
Use the toggle to enable Debug Mode on for a workflow. Set up breakpoints. A breakpoint is like a "pause button" you place in your workflow step — when the workflow runs and hits that spot, it freezes so you can inspect exactly what's happening at that moment. You can set up break points by clicking on
Steps with breakpoints set appears as below:
Click on Sync Now on the top right to run Workflow in Debug Mode.
Assume breakpoints are set at Step 3 and Step 6.
When you run the workflow in Debug Mode:
Steps 1 and 2 execute normally.
Execution pauses at Step 3.
Two options appear:
Run This Step → Executes only Step 3
Continue → Executes Steps 3, 4, and 5
Execution pauses again at Step 6 with the same options.
Note:
If there are loops in between and you have set breakpoints in any branching step your execution might pause at a loop prompting you to choose between Run This Step/ Continue.
To stop debugging, select Exit Debugger on the top right.
This allows you to observe data and behavior step by step, without affecting logs or production settings.
3. Utilize Snippets for Reusability
Save complex logic as Snippets and reuse across workflows
Reduces repetitive step building
Improves workflow maintainability
Optimization benefit: Build once, use multiple times
Last updated
Was this helpful?