Improved formatting of debug output