add debug_stdout function.