Index: tools/lldb-vscode/VSCode.cpp =================================================================== --- tools/lldb-vscode/VSCode.cpp +++ tools/lldb-vscode/VSCode.cpp @@ -92,8 +92,14 @@ // JSON bytes. //---------------------------------------------------------------------- void VSCode::SendJSON(const std::string &json_str) { +#if defined(_WIN32) + // Windows converts \n to 13,10 when the FILE is in text mode + fprintf(out, "Content-Length: %u\n\n%s", (uint32_t)json_str.size(), + json_str.c_str()); +#else fprintf(out, "Content-Length: %u\r\n\r\n%s", (uint32_t)json_str.size(), json_str.c_str()); +#endif fflush(out); if (log) { *log << "<-- " << std::endl