================ @@ -107,6 +107,10 @@ def read_packet_thread(vs_comm, log_file): # termination of lldb-dap and stop waiting for new packets. done = not vs_comm.handle_recv_packet(packet) finally: + # Wait for the process to fully exit before dumping the log file to + # ensure we have the entire log contents. + if vs_comm.process is not None: + vs_comm.process.wait() ---------------- JDevlieghere wrote:
Should we provide a reasonable timeout (e.g. 5 seconds) so that if the process hangs, we still dump the logs? Maybe even send a kill? https://github.com/llvm/llvm-project/pull/131917 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits