Improve debug message for printing Attribute