Skip to content

Commit 56e901b

Browse files
committed
cosmetics
1 parent e9b4f84 commit 56e901b

File tree

2 files changed

+11
-15
lines changed

2 files changed

+11
-15
lines changed

src/MonoDebug.cs

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ private static void Main(string[] argv)
5454
}
5555
}
5656

57+
private static void RunSession(Stream inputStream, Stream outputStream)
58+
{
59+
DebugSession debugSession = new MonoDebugSession();
60+
debugSession.TRACE = trace_requests;
61+
debugSession.TRACE_RESPONSE = trace_responses;
62+
debugSession.Start(inputStream, outputStream).Wait();
63+
}
64+
5765
private static void RunServer(int port)
5866
{
5967
TcpListener serverSocket = new TcpListener(IPAddress.Parse("127.0.0.1"), port);
@@ -74,24 +82,12 @@ private static void RunServer(int port)
7482
Console.Error.WriteLine("Exception: " + e);
7583
}
7684
}
77-
#if DNXCORE50
78-
clientSocket.Dispose();
79-
#else
8085
clientSocket.Close();
81-
#endif
8286
Console.Error.WriteLine(">> client connection closed");
8387
}).Start();
8488
}
8589
}
8690
}).Start();
8791
}
88-
89-
private static void RunSession(Stream inputStream, Stream outputStream)
90-
{
91-
DebugSession debugSession = new MonoDebugSession();
92-
debugSession.TRACE = trace_requests;
93-
debugSession.TRACE_RESPONSE = trace_responses;
94-
debugSession.Start(inputStream, outputStream).Wait();
95-
}
9692
}
9793
}

src/Protocol.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ public ProtocolMessage(string typ, int sq) {
2828

2929
public class Request : ProtocolMessage
3030
{
31-
public string command { get; set; }
32-
public dynamic arguments { get; set; }
31+
public string command;
32+
public dynamic arguments;
3333

3434
public Request(int id, string cmd, dynamic arg) : base("request", id) {
3535
command = cmd;
@@ -38,7 +38,7 @@ public Request(int id, string cmd, dynamic arg) : base("request", id) {
3838
}
3939

4040
/*
41-
* subclasses of ResponseBody are serialized as the response body.
41+
* subclasses of ResponseBody are serialized as the body of a response.
4242
* Don't change their instance variables since that will break the debug protocol.
4343
*/
4444
public class ResponseBody {

0 commit comments

Comments
 (0)