From b5e801379f5123dfd8195ac3c4b7a8ba4168a458 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Wed, 6 Sep 2017 16:21:04 -0500 Subject: DEBUGGER: Flush stdout after debugger writes with USE_TEXT_CONSOLE_FOR_DEBUGGER stdout may be buffered, in which case debugger messages are delayed until a newline is written. The same kinds of calls to OSystem::logMessage are flushed, so this just seems to be a simple omission on this non-default code branch. --- gui/debugger.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gui/debugger.cpp b/gui/debugger.cpp index 7595efcfbc..a570d86b70 100644 --- a/gui/debugger.cpp +++ b/gui/debugger.cpp @@ -110,6 +110,7 @@ int Debugger::debugPrintf(const char *format, ...) { count = _debuggerDialog->vprintFormat(1, format, argptr); #else count = ::vprintf(format, argptr); + ::fflush(stdout); #endif va_end (argptr); return count; -- cgit v1.2.3