Prototype complete InterpreterEntry serialization

This commit is contained in:
Yoshi Askharoun
2023-05-24 10:14:07 -05:00
parent 141a2200dd
commit bcf9b83f54
6 changed files with 117 additions and 62 deletions
@@ -1,6 +1,8 @@
using NetMQ;
using NetMQ.Sockets;
using System;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
namespace Microsoft.Iris.Debug;
@@ -22,7 +24,10 @@ internal class ZmqDebuggerServer : IDebuggerServer, IDisposable
public void LogInterpreterOpCode(object context, Data.InterpreterEntry entry)
{
SendDebuggerMessage(DebuggerMessageType.InterpreterOpCode, entry.ToString());
using MemoryStream entryStream = new();
new BinaryFormatter().Serialize(entryStream, entry);
SendDebuggerMessage(DebuggerMessageType.InterpreterOpCode, entryStream.ToArray());
}
public void LogDispatcher(string message)