What is the purpose of printing debug messages?

Technical