print debug will be a pass all params and kwargs to print.
restore the at exit hook.