Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="VSInteractiveWindow"/> class.
        /// </summary>
        public VSInteractiveWindow()
            : base(null)
        {
            this.Caption = CaptionText;

            grid         = new Grid();
            this.Content = grid;

            unloadedDomainControl      = new TextBlock();
            unloadedDomainControl.Text = "This window is only active while debugging";
            grid.Children.Add(unloadedDomainControl);

            VSContext.DebuggerEnteredDesignMode += () =>
            {
#if USE_APP_DOMAIN
                proxy?.DebuggerEnteredDesignMode();
#else
                interactiveControl?.DebuggerEnteredDesignMode();
#endif
                UnloadDomain();
            };
            VSContext.DebuggerEnteredRunMode += () =>
            {
                LoadDomain();
#if USE_APP_DOMAIN
                proxy?.DebuggerEnteredRunMode();
#else
                interactiveControl?.DebuggerEnteredRunMode();
#endif
            };
            VSContext.DebuggerEnteredBreakMode += () =>
            {
                LoadDomain();
#if USE_APP_DOMAIN
                proxy?.DebuggerEnteredBreakMode();
#else
                interactiveControl?.DebuggerEnteredBreakMode();
#endif
            };
            if (VSContext.CurrentDebugMode == EnvDTE.dbgDebugMode.dbgBreakMode || VSContext.CurrentDebugMode == EnvDTE.dbgDebugMode.dbgRunMode)
            {
                LoadDomain();
            }
        }
Пример #2
0
 public void DebuggerEnteredBreakMode()
 {
     control.DebuggerEnteredBreakMode();
 }