Of course they don't have to have state.
In either case, you can debug them by composing them with a function that inspects them.