How do I debug the 'reduce()' operation of a stream UDF?

I’m facing the same issue. How can we see logs generated in the “reduce” stream udf?