Fix issue in the `debugger` tool when running with a backend Prolog compiler that doesn't support unbuffered character input and requires flushing the current output stream before inputing a character