Exported IO redirecting debug functions.