예제 #1
0
        /////////////////////////////////////////////////////////////////////////////
        // Overridden Package Implementation
        #region Package Members

        /// <summary>
        /// Initialization of the package; this method is called right after the package is sited, so this is the place
        /// where you can put all the initialization code that rely on services provided by VisualStudio.
        /// </summary>
        protected override void Initialize()
        {
            Debug.WriteLine(string.Format(CultureInfo.CurrentCulture, "Entering Initialize() of: {0}", this.ToString()));
            base.Initialize();

            // Install the command for launching JsDbg.
            OleMenuCommandService mcs = GetService(typeof(IMenuCommandService)) as OleMenuCommandService;

            if (mcs != null)
            {
                MenuCommand launchJsDbgCommand = new MenuCommand(LaunchJsDbg, new CommandID(GuidList.guidJsDbgCmdSet, (int)PkgCmdIDList.cmdidLaunchJsDbg));
                mcs.AddCommand(launchJsDbgCommand);
            }

            Configuration configuration = Configuration.Load();

            Core.PersistentStore persistentStore = new Core.PersistentStore();

            if (AutoUpdater.CheckForUpdates("5b3af206-b4d4-4d12-9661-5d2d8dd8d194", configuration.UpdateUrl) != Microsoft.VisualStudio.ExtensionManager.RestartReason.None)
            {
                Debug.WriteLine("Update pending.");
            }

            DebuggerRunner runner = new DebuggerRunner();

            this.webServer = new Core.WebServer(runner.Debugger, persistentStore, configuration.ExtensionRoot);
            this.webServer.LoadExtension("default");
        }
예제 #2
0
 internal DebuggerEngine(DebuggerRunner runner)
 {
     this.runner    = runner;
     this.diaLoader = null;
 }