Output debug messages in a nicer form for writing test cases