Function print_debug

Prints formatted debug text

Formats and prints text if global debug option is enabled.

Input: