[Lldb-commits] [lldb] [lldb] Real-time console pane for output in lldb tui (PR #177160)

Nagesh Nazare via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 7 08:53:20 PDT 2026


================
@@ -0,0 +1,25 @@
+#include <chrono>
+#include <iostream>
+#include <thread>
+
+void generate_output() {
+  for (unsigned i = 1; i < 4; ++i) {
+    std::cout << "Hello from stdout line " << i << std::endl;
+    std::cerr << "Hello from stderr line " << i << std::endl;
+  }
+}
+
+int main(int argc, char *argv[]) {
+  int test_var = 42;
+
+  // Break before output.
+  int break_here = 0; // break here begin
+
+  // Generate stdout/stderr output.
+  generate_output();
----------------
nageshnnazare wrote:

Added a function for covering that case

https://github.com/llvm/llvm-project/pull/177160


More information about the lldb-commits mailing list