Gets the string representation of a DebugMessage.
This function is used in debug handlers to extract the message.
a debug message
the string representation of a DebugMessage.