public ExceptionBreakManager(DebugSessionManager sessionManager, Func<string, bool> ignorePredicate, IDiagnosticLogger logger) {
            _sessionManager = sessionManager;
            _ignorePredicate = ignorePredicate;
            _logger = logger;

            if (Session != null)
                _currentState = GetStateFromSession();
            _sessionManager.DebugSessionChanged += sessionManager_DebugSessionChanged;
        }
示例#2
0
        public ExceptionBreakManager(DebugSessionManager sessionManager, Func <string, bool> ignorePredicate, IDiagnosticLogger logger)
        {
            _sessionManager  = sessionManager;
            _ignorePredicate = ignorePredicate;
            _logger          = logger;

            if (Session != null)
            {
                _currentState = GetStateFromSession();
            }
            _sessionManager.DebugSessionChanged += sessionManager_DebugSessionChanged;
        }
 private void SetupExceptionBreakManager()
 {
     var versionSpecificFactory = new VersionSpecificAdapterFactory(_dte);
     var debugger = GetGlobalService(typeof (SVsShellDebugger));
     var sessionManager = new DebugSessionManager(versionSpecificFactory.AdaptDebuggerInternal(debugger), Logger);
     var optionsPage = new Lazy<OptionsPageData>(() => (OptionsPageData)GetDialogPage(typeof (OptionsPageData)));
     ExceptionBreakManager = new ExceptionBreakManager(
         sessionManager,
         name => optionsPage.Value.Ignored.Any(p => p.Matches(name)),
         Logger
     );
 }