Call flush in the debugger to be sure that the output is flushed.
This commit is contained in:
committed by
Pavel Punegov
parent
676f1c82a6
commit
e66362d19e
@@ -399,6 +399,8 @@ private fun deviceLauncher(project: Project) = object : ExecutorService {
|
|||||||
process = exe_ctx.GetProcess()
|
process = exe_ctx.GetProcess()
|
||||||
state = process.GetState()
|
state = process.GetState()
|
||||||
if state == lldb.eStateStopped:
|
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")
|
debugger.HandleCommand("bt all")
|
||||||
process.Kill()
|
process.Kill()
|
||||||
code = process.GetExitStatus()
|
code = process.GetExitStatus()
|
||||||
|
|||||||
Reference in New Issue
Block a user