Refine debug output formatting