Adds debug code to decode the first document in stream