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);
        }
Beispiel #3
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;
            }
        }