mirror of
https://github.com/ZuneDev/MicrosoftIris.git
synced 2026-07-27 13:13:29 -07:00
Add Start method to debugger server and client
This commit is contained in:
@@ -5,6 +5,8 @@ namespace Microsoft.Iris.Debug;
|
||||
|
||||
public interface IDebuggerState
|
||||
{
|
||||
void Start();
|
||||
|
||||
InterpreterCommand DebuggerCommand { get; set; }
|
||||
}
|
||||
|
||||
|
||||
@@ -14,6 +14,8 @@ public class InProcDebugger : IDebuggerClient, IDebuggerServer
|
||||
public event EventHandler<InterpreterEntry> InterpreterExecute;
|
||||
public event Action<string> DispatcherStep;
|
||||
|
||||
public void Start() { }
|
||||
|
||||
public void RequestLineNumberTable(string uri, Action<MarkupLineNumberEntry[]> callback)
|
||||
{
|
||||
var lineNumberTable = ((IDebuggerServer)this).OnLineNumberTableRequested(uri);
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user