diff --git a/UIX/Microsoft/Iris/Debug/IDebuggerState.cs b/UIX/Microsoft/Iris/Debug/IDebuggerState.cs index a39ab4d..b256630 100644 --- a/UIX/Microsoft/Iris/Debug/IDebuggerState.cs +++ b/UIX/Microsoft/Iris/Debug/IDebuggerState.cs @@ -5,6 +5,8 @@ namespace Microsoft.Iris.Debug; public interface IDebuggerState { + void Start(); + InterpreterCommand DebuggerCommand { get; set; } } diff --git a/UIX/Microsoft/Iris/Debug/InProcDebugger.cs b/UIX/Microsoft/Iris/Debug/InProcDebugger.cs index 0028a71..02202af 100644 --- a/UIX/Microsoft/Iris/Debug/InProcDebugger.cs +++ b/UIX/Microsoft/Iris/Debug/InProcDebugger.cs @@ -14,6 +14,8 @@ public class InProcDebugger : IDebuggerClient, IDebuggerServer public event EventHandler InterpreterExecute; public event Action DispatcherStep; + public void Start() { } + public void RequestLineNumberTable(string uri, Action callback) { var lineNumberTable = ((IDebuggerServer)this).OnLineNumberTableRequested(uri); diff --git a/UIX/Microsoft/Iris/Debug/SystemNet/NetDebuggerClient.cs b/UIX/Microsoft/Iris/Debug/SystemNet/NetDebuggerClient.cs index c010a2b..a646825 100644 --- a/UIX/Microsoft/Iris/Debug/SystemNet/NetDebuggerClient.cs +++ b/UIX/Microsoft/Iris/Debug/SystemNet/NetDebuggerClient.cs @@ -44,7 +44,10 @@ public class NetDebuggerClient : IDebuggerClient, IRemoteDebuggerState, IDisposa ConnectionUri = connectionUri ?? DebugRemoting.DEFAULT_TCP_URI; _socket = new(SocketType.Stream, ProtocolType.Tcp); _formatter = DebugRemoting.CreateBsonFormatter(); + } + public void Start() + { System.Threading.Thread connectThread = new(ConnectLoop) { IsBackground = true }; connectThread.Start(); } diff --git a/UIX/Microsoft/Iris/Debug/SystemNet/NetDebuggerServer.cs b/UIX/Microsoft/Iris/Debug/SystemNet/NetDebuggerServer.cs index ae4639d..3b1ef75 100644 --- a/UIX/Microsoft/Iris/Debug/SystemNet/NetDebuggerServer.cs +++ b/UIX/Microsoft/Iris/Debug/SystemNet/NetDebuggerServer.cs @@ -45,10 +45,13 @@ public class NetDebuggerServer : IDebuggerServer, IRemoteDebuggerState, IDisposa _formatter = DebugRemoting.CreateBsonFormatter(); + Current = this; + } + + public void Start() + { System.Threading.Thread connectThread = new(ConnectLoop) { IsBackground = true }; connectThread.Start(); - - Current = this; } public MarkupLineNumberEntry[] OnLineNumberTableRequested(string uri)