I don't think so,
when you go `stream.map(a => s"debug: $a") you are effectively creating a `Process[Task, String]` but your debug method expects a `Process[Task, A]`.
One solution can be to "log" your process:
Process.logged(stream) // creates a Process[Task, A \/ A]
.mapW(a => s"debug: $a") // map the left side: Process[Task, String \/ A]
.drainW(io.stdOutLines) // prints the left values to std out and discard them: Process[Task, A]
I haven't tried to compile the code above so I hope it works :-)
Eric.