Improves debugging messages to print text from annotations