Exemplo n.º 1
0
 public MtaStaConnector(NetDebuggerSession session)
 {
     _creationThread  = Thread.CurrentThread;
     _dummyForm       = new Form();
     _dummyFormHandle = _dummyForm.Handle;
     _session         = session;
 }
        public override DebuggerSession CreateSession()
        {
            var session = CurrentSession = new NetDebuggerSession();

            if (ExtensionHost != null)
            {
                session.ProgressReporter = ExtensionHost.CreateOrGetReporter("Debug");

                foreach (var breakpoint in ExtensionHost.BookmarkManager.GetBookmarks <BreakpointBookmark>())
                {
                    CurrentSession.AddBreakpoint(breakpoint);
                }
            }
            return(session);
        }