use the debug module on a stream