Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornosami <jasonimison@gmail.com>2019-08-30 17:42:22 +0300
committernosami <jasonimison@gmail.com>2019-08-30 17:42:22 +0300
commit996cb97c017dc3bb3cb7972f3960eb252ce2943a (patch)
tree69fadc2454d7a8c5ff795912be29856abb721f7f
parent0bbace82645fde3a828e42c60b2e574f871bf873 (diff)
set output stream to be the network streamcoreclr-debugger-server-hack
-rw-r--r--main/src/addins/MonoDevelop.Debugger.VSCodeDebugProtocol/MonoDevelop.Debugger.VsCodeDebugProtocol/VSCodeDebuggerSession.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/src/addins/MonoDevelop.Debugger.VSCodeDebugProtocol/MonoDevelop.Debugger.VsCodeDebugProtocol/VSCodeDebuggerSession.cs b/main/src/addins/MonoDevelop.Debugger.VSCodeDebugProtocol/MonoDevelop.Debugger.VsCodeDebugProtocol/VSCodeDebuggerSession.cs
index ecd3ac9f82..b4848363f8 100644
--- a/main/src/addins/MonoDevelop.Debugger.VSCodeDebugProtocol/MonoDevelop.Debugger.VsCodeDebugProtocol/VSCodeDebuggerSession.cs
+++ b/main/src/addins/MonoDevelop.Debugger.VSCodeDebugProtocol/MonoDevelop.Debugger.VsCodeDebugProtocol/VSCodeDebuggerSession.cs
@@ -225,6 +225,7 @@ namespace MonoDevelop.Debugger.VsCodeDebugProtocol
var startInfo = new ProcessStartInfo (GetDebugAdapterPath (), GetDebugAdapterArguments ());
startInfo.RedirectStandardOutput = true;
startInfo.RedirectStandardInput = true;
+
startInfo.StandardOutputEncoding = Encoding.UTF8;
startInfo.StandardOutputEncoding = Encoding.UTF8;
startInfo.UseShellExecute = false;
@@ -235,8 +236,10 @@ namespace MonoDevelop.Debugger.VsCodeDebugProtocol
debugAgentProcess.Exited += DebugAgentProcess_Exited;
var tcpClient = new TcpClient ("127.0.0.1", 4711);
NetworkStream ns = tcpClient.GetStream ();
- protocolClient = new DebugProtocolHost (ns /*debugAgentProcess.StandardInput.BaseStream*/, debugAgentProcess.StandardOutput.BaseStream);
+ //protocolClient = new DebugProtocolHost (debugAgentProcess.StandardInput.BaseStream, debugAgentProcess.StandardOutput.BaseStream);
+ protocolClient = new DebugProtocolHost (ns, ns);
protocolClient.RequestReceived += OnDebugAdaptorRequestReceived;
+
protocolClient.Run ();
protocolClient.EventReceived += HandleEvent;
InitializeRequest initRequest = CreateInitRequest ();