flush stdout on debug