Call flush in the debugger to be sure that the output is flushed.

This commit is contained in:
Pavel Punegov
2020-07-22 20:21:21 +03:00
committed by Pavel Punegov
parent 676f1c82a6
commit e66362d19e
@@ -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()