From e66362d19eceaac4eeb8919bce9531c766d050fa Mon Sep 17 00:00:00 2001 From: Pavel Punegov Date: Wed, 22 Jul 2020 20:21:21 +0300 Subject: [PATCH] Call flush in the debugger to be sure that the output is flushed. --- .../src/main/kotlin/org/jetbrains/kotlin/ExecutorService.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build-tools/src/main/kotlin/org/jetbrains/kotlin/ExecutorService.kt b/build-tools/src/main/kotlin/org/jetbrains/kotlin/ExecutorService.kt index 712ef1d1da8..b2e7fe01e89 100644 --- a/build-tools/src/main/kotlin/org/jetbrains/kotlin/ExecutorService.kt +++ b/build-tools/src/main/kotlin/org/jetbrains/kotlin/ExecutorService.kt @@ -399,6 +399,8 @@ private fun deviceLauncher(project: Project) = object : ExecutorService { process = exe_ctx.GetProcess() state = process.GetState() if state == lldb.eStateStopped: + # Call flush method, otherwise some output isn't shown in the debugger + debugger.HandleCommand("expression -- (int) fflush(NULL)") debugger.HandleCommand("bt all") process.Kill() code = process.GetExitStatus()