improve a printer of debug information