DebugPrint sets printing function.