public static void Run(bool install, string pipes, string ports, string password, string terminalTemplate) { if (pipes != null) { ConsoleMirror.StartClient(pipes); } else { if (install) { Installer.Install(); } UI.Clear(); MonoLogger.Setup(); using (debugServer = new MonoDebugServer(false, ports, password, terminalTemplate)) { debugServer.KeyPress += HandleKey; debugServer.StartKeyInput(); debugServer.StartAnnouncing(); debugServer.Start(); debugServer.WaitForExit(); } } }
private async void DebugLocalClicked(object sender, EventArgs e) { try { if (server != null) { server.Stop(); server = null; } monoExtension.BuildSolution(); using (server = new MonoDebugServer()) { server.Start(); await monoExtension.AttachDebuggerAsync(MonoProcess.GetLocalIp().ToString()); } } catch (Exception ex) { logger.Error(ex); if (server != null) { server.Stop(); } MessageBox.Show(ex.Message, "MonoRemoteDebugger", MessageBoxButton.OK, MessageBoxImage.Error); } }
private static void Main(string[] args) { MonoLogger.Setup(); using (var server = new MonoDebugServer()) { server.StartAnnouncing(); server.Start(); server.WaitForExit(); } }
private static void Main(string[] args) { MonoLogger.Setup(); MonoUtils.EnsurePdb2MdbCallWorks(); using (var server = new MonoDebugServer()) { server.StartAnnouncing(); server.Start(); server.WaitForExit(); } }
private static void Main(string[] args) { Console.WriteLine($"MonoRemoteDebugger.Server v{Assembly.GetExecutingAssembly().GetName().Version.ToString(3)}"); MonoLogger.Setup(); MonoUtils.EnsurePdb2MdbCallWorks(); using (var server = new MonoDebugServer()) { server.StartAnnouncing(); server.Start(); server.WaitForExit(); } }
private async void StartLocalServer() { try { // Stop old instance server?.Dispose(); await _monoExtension.BuildSolutionAsync(); using (server = new MonoDebugServer()) { server.Start(); var settings = UserSettingsManager.Instance.Load(); var debugOptions = this._monoExtension.CreateDebugOptions(settings); debugOptions.UserSettings.LastIp = SharedLib.Server.MonoProcess.GetLocalIp().ToString(); await _monoExtension.AttachDebugger(debugOptions); } } catch (Exception ex) { logger.Error(ex); MessageBox.Show(ex.Message, "MonoRemoteDebugger", MessageBoxButton.OK, MessageBoxImage.Error); } }