From 3f3c22b0d077fc7b4763715a8de1ec85277a0821 Mon Sep 17 00:00:00 2001 From: Andoni Morales Alastruey Date: Tue, 23 Nov 2021 16:39:06 +0100 Subject: [PATCH] Fix passing long environment variables to the debugger Increase the command buffer size x10 to support passing long environment variables. This is required in projects like GStreamer requiring to setup env variables like GST_PLUGIN_PATH with several directories in order to be able to debug without having to install into a prefix, which takes a long time and slows down the development cycle. https://github.com/microsoft/vscode-cpptools/issues/8411 https://github.com/microsoft/vscode-cpptools/issues/6874 --- src/MICmnStreamStdin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MICmnStreamStdin.h b/src/MICmnStreamStdin.h index b193757..e1b8a55 100644 --- a/src/MICmnStreamStdin.h +++ b/src/MICmnStreamStdin.h @@ -55,6 +55,6 @@ class CMICmnStreamStdin : public CMICmnBase, CMIUtilString m_strPromptCurrent; // Command line prompt as shown to the user bool m_bShowPrompt; // True = Yes prompt is shown/output to the user (stdout), // false = no prompt - static const int m_constBufferSize = 2048; + static const int m_constBufferSize = 20480; char *m_pCmdBuffer; };