diff options
author | nosami <jasonimison@gmail.com> | 2019-08-30 17:42:22 +0300 |
---|---|---|
committer | nosami <jasonimison@gmail.com> | 2019-08-30 17:42:22 +0300 |
commit | 996cb97c017dc3bb3cb7972f3960eb252ce2943a (patch) | |
tree | 69fadc2454d7a8c5ff795912be29856abb721f7f | |
parent | 0bbace82645fde3a828e42c60b2e574f871bf873 (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.cs | 5 |
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 (); |