public SoftDebuggerStartInfo SetupConnection() { iProxy.Start(LocalPort, DevicePort); var args = new SoftDebuggerConnectArgs("Any iOS Device", IPAddress.Loopback, LocalPort); return new SoftDebuggerStartInfo(args); }
public static void Connect(IPAddress address, int port) { lock (_lock) { EnsureCreated(); CurrentExecutable = null; CurrentAddress = address; CurrentPort = port; _debuggeeKilled = false; _kind = SessionKind.Connected; var args = new SoftDebuggerConnectArgs(string.Empty, address, port) { MaxConnectionAttempts = Configuration.Current.MaxConnectionAttempts, TimeBetweenConnectionAttempts = Configuration.Current.ConnectionAttemptInterval }; _session.Run(new SoftDebuggerStartInfo(args), Options); CommandLine.InferiorExecuting = true; } }
public SoftDebuggerStartInfo DebuggerInfo(int consolePort = -1) { try { IPAddress[] addresslist = Dns.GetHostAddresses(LocalHost); var startArgs = new SoftDebuggerConnectArgs ("", addresslist[0], (int)LocalTunnelPort, consolePort) { //infinite connection retries (user can cancel), 800ms between them TimeBetweenConnectionAttempts = 800, MaxConnectionAttempts = -1, }; var dsi = new SoftDebuggerStartInfo (startArgs) { Command = "", Arguments = "" }; if (Terminal != null) Terminal.SSH.WriteLine ("Configuring debugger {0}:{1}",addresslist[0], (int)LocalTunnelPort); return dsi; } catch (Exception ex) { if (Terminal != null) { Terminal.SSH.WriteLine ("SoftDebuggerStartInfo Error {0}", ex.Message); } else { Gtk.Application.Invoke (delegate { using (var md = new MessageDialog (null, DialogFlags.Modal, MessageType.Info, ButtonsType.Ok, String.Format("SoftDebuggerStartInfo Error {0}", ex.Message))) { md.Title = "ProcessScript"; md.Run (); md.Destroy (); } }); } return null; } }