public IDebuggerEvents AdviseDebuggerEvents(IDebugUserControl control, out uint cookie)
 {
     VisualStudioDebuggerEvents vsde = new VisualStudioDebuggerEvents(r_dte, control);
     IVsDebugger vsd = control.GetDebugService(typeof(IVsDebugger)) as IVsDebugger;
     int hr = vsd.AdviseDebuggerEvents(vsde, out cookie);
     return vsde;
 }
        public IDebuggerEvents AdviseDebuggerEvents(IDebugUserControl control, out uint cookie)
        {
            VisualStudioDebuggerEvents vsde = new VisualStudioDebuggerEvents(r_dte, control);
            IVsDebugger vsd = control.GetDebugService(typeof(IVsDebugger)) as IVsDebugger;
            int         hr  = vsd.AdviseDebuggerEvents(vsde, out cookie);

            return(vsde);
        }
        internal VisualStudioDebuggerEvents(DTE dte, IDebugUserControl myControl)
        {
            if (dte == null)
                throw new ArgumentNullException("dte");

            if (myControl == null)
                throw new ArgumentNullException("myControl");

            r_myControl = myControl;

            r_dte = dte;
        }
        internal VisualStudioDebuggerEvents(DTE dte, IDebugUserControl myControl)
        {
            if (dte == null)
            {
                throw new ArgumentNullException("dte");
            }

            if (myControl == null)
            {
                throw new ArgumentNullException("myControl");
            }

            r_myControl = myControl;

            r_dte = dte;
        }
Beispiel #5
0
        public override void OnToolWindowCreated()
        {
            base.OnToolWindowCreated();

            try
            {
                IDebugUserControl dbc = control;
                DTE dte = dbc.GetDebugService(typeof(DTE)) as DTE;
                VisualStudioEnvironment env = new VisualStudioEnvironment(dte);
                control.Initialize(env as IEnvironment);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString(), "Error in DebugInspector Creation");
                throw;
            }
        }