Ejemplo n.º 1
0
        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();
                }
            }
        }
Ejemplo n.º 2
0
        private static void Main(string[] args)
        {
            MonoLogger.Setup();

            using (var server = new MonoDebugServer())
            {
                server.StartAnnouncing();
                server.Start();

                server.WaitForExit();
            }
        }
Ejemplo n.º 3
0
        private static void Main(string[] args)
        {
            MonoLogger.Setup();

            MonoUtils.EnsurePdb2MdbCallWorks();

            using (var server = new MonoDebugServer())
            {
                server.StartAnnouncing();
                server.Start();

                server.WaitForExit();
            }
        }
Ejemplo n.º 4
0
        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();
            }
        }
Ejemplo n.º 5
0
        protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            var settingsManager            = new ShellSettingsManager(this);
            var configurationSettingsStore = settingsManager.GetWritableSettingsStore(SettingsScope.UserSettings);

            UserSettingsManager.Initialize(configurationSettingsStore);
            MonoLogger.Setup();
            base.Initialize();
            var dte = await GetServiceAsync(typeof(DTE)) as DTE;

            monoExtension = new MonoVisualStudioExtension(dte);
            TryRegisterAssembly();


            Application.Current.Resources.MergedDictionaries.Add(new ResourceDictionary
            {
                Source = new Uri("/MonoRemoteDebugger.VSExtension;component/Resources/Resources.xaml", UriKind.Relative)
            });

            var mcs = await GetServiceAsync(typeof(IMenuCommandService)) as OleMenuCommandService;

            InstallMenu(mcs);
        }
Ejemplo n.º 6
0
        protected override void Initialize()
        {
            var settingsManager            = new ShellSettingsManager(this);
            var configurationSettingsStore = settingsManager.GetWritableSettingsStore(SettingsScope.UserSettings);

            UserSettingsManager.Initialize(configurationSettingsStore);
            MonoLogger.Setup();
            base.Initialize();
            var dte = (DTE)GetService(typeof(DTE));

            monoExtension = new MonoVisualStudioExtension(dte);
            TryRegisterAssembly();


            Application.Current.Resources.MergedDictionaries.Add(new ResourceDictionary
            {
                Source = new Uri("/MonoDebugger.VS2015;component/Resources/Resources.xaml", UriKind.Relative)
            });

            var mcs = GetService(typeof(IMenuCommandService)) as OleMenuCommandService;

            InstallMenu(mcs);
        }
Ejemplo n.º 7
0
        protected override void Initialize()
        {
            UserSettingsManager.Initialize(this);

            MonoLogger.Setup();

            base.Initialize();

            var dte = (DTE)GetService(typeof(DTE));

            _monoExtension = new MonoVisualStudioExtension(dte);

            TryRegisterAssembly();

            Application.Current.Resources.MergedDictionaries.Add(new ResourceDictionary
            {
                Source = new Uri("/MonoRemoteDebugger.VSExtension;component/Resources/Resources.xaml", UriKind.Relative)
            });

            InstallMenu();

            // Workaround: Don't show Visual Studio WPF DataBinding errors in Output window
            System.Diagnostics.PresentationTraceSources.DataBindingSource.Switch.Level = System.Diagnostics.SourceLevels.Critical;
        }