Here are some convenience functions to log the input and output of a function.
You can use it just by putting it in front of a function you’re trying to debug.
import Debug.Watch as Debug x = Debug.watch "add one" addOne 5
results in a console log of
add one : 5 -> : 6