diff --git a/lldb/tools/lldb-vscode/VSCode.cpp b/lldb/tools/lldb-vscode/VSCode.cpp --- a/lldb/tools/lldb-vscode/VSCode.cpp +++ b/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; }