Add metadata debugging output and show it when the reader is in debug mode