[Lldb-commits] [lldb] [lldb-dap] When sending a DAP Output Event break each message into separate lines. (PR #105456)

Walter Erquinigo via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 21 12:11:58 PDT 2024


================
@@ -399,7 +399,7 @@ void SendProcessEvent(LaunchMethod launch_method) {
 // Grab any STDOUT and STDERR from the process and send it up to VS Code
 // via an "output" event to the "stdout" and "stderr" categories.
 void SendStdOutStdErr(lldb::SBProcess &process) {
-  char buffer[1024];
+  char buffer[4096];
----------------
walter-erquinigo wrote:

could you also modify that other buffer and have a constant that can be used by both of them? 4096 should be more than enough for most messages.

After that, this PR should be fine by me.

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


More information about the lldb-commits mailing list