[Lldb-commits] [PATCH] D74377: [lldb-vscode] fix logging

walter erquinigo via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Feb 10 19:43:03 PST 2020


wallace created this revision.
wallace added a reviewer: clayborg.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

This applies the patch clayborg sent me for fixing logging, which didn't include incoming messages from VSCode.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D74377

Files:
  lldb/tools/lldb-vscode/VSCode.cpp


Index: lldb/tools/lldb-vscode/VSCode.cpp
===================================================================
--- lldb/tools/lldb-vscode/VSCode.cpp
+++ lldb/tools/lldb-vscode/VSCode.cpp
@@ -128,6 +128,12 @@
 
   if (!input.read_full(log.get(), length, json_str))
     return json_str;
+    
+  if (log) {
+    *log << "--> " << std::endl
+         << "Content-Length: " << length << "\r\n\r\n"
+         << json_str << std::endl;
+  }
 
   return json_str;
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74377.243719.patch
Type: text/x-patch
Size: 459 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200211/1abd85d6/attachment.bin>


More information about the lldb-commits mailing list