print() – Writes the textual representations of the given items into the standard output. debugPrint() – Writes the textual representations of the given items most suitable for debugging into the standard output . Basically debugPrint adds additional information that is useful for debugging like type information etc.