예제 #1
0
		BreakpointsVM(IDecompilerService decompilerService, IDebuggerSettings debuggerSettings, ITheDebugger theDebugger, IBreakpointService breakpointService, IBreakpointSettings breakpointSettings, Lazy<IModuleLoader> moduleLoader, IInMemoryModuleService inMemoryModuleService, IClassificationFormatMapService classificationFormatMapService, ITextElementProvider textElementProvider) {
			var classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap(AppearanceCategoryConstants.UIMisc);
			breakpointContext = new BreakpointContext(moduleLoader, classificationFormatMap, textElementProvider) {
				Decompiler = decompilerService.Decompiler,
				SyntaxHighlight = debuggerSettings.SyntaxHighlightBreakpoints,
				UseHexadecimal = debuggerSettings.UseHexadecimal,
				ShowTokens = breakpointSettings.ShowTokens,
				ShowModuleNames = breakpointSettings.ShowModuleNames,
				ShowParameterTypes = breakpointSettings.ShowParameterTypes,
				ShowParameterNames = breakpointSettings.ShowParameterNames,
				ShowOwnerTypes = breakpointSettings.ShowOwnerTypes,
				ShowReturnTypes = breakpointSettings.ShowReturnTypes,
				ShowNamespaces = breakpointSettings.ShowNamespaces,
				ShowTypeKeywords = breakpointSettings.ShowTypeKeywords,
			};
			this.breakpointService = breakpointService;
			this.theDebugger = theDebugger;
			breakpointList = new ObservableCollection<BreakpointVM>();
			breakpointSettings.PropertyChanged += BreakpointSettings_PropertyChanged;
			breakpointService.BreakpointsAdded += BreakpointService_BreakpointsAdded;
			breakpointService.BreakpointsRemoved += BreakpointService_BreakpointsRemoved;
			debuggerSettings.PropertyChanged += DebuggerSettings_PropertyChanged;
			theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
			classificationFormatMap.ClassificationFormatMappingChanged += ClassificationFormatMap_ClassificationFormatMappingChanged;
			decompilerService.DecompilerChanged += DecompilerService_DecompilerChanged;
			inMemoryModuleService.DynamicModulesLoaded += InMemoryModuleService_DynamicModulesLoaded;
			foreach (var bp in breakpointService.GetBreakpoints())
				AddBreakpoint(bp);
		}
예제 #2
0
 BreakpointsVM(IDecompilerService decompilerService, IThemeService themeService, IDebuggerSettings debuggerSettings, ITheDebugger theDebugger, IBreakpointService breakpointService, IBreakpointSettings breakpointSettings, Lazy <IModuleLoader> moduleLoader, IInMemoryModuleService inMemoryModuleService)
 {
     this.breakpointContext = new BreakpointContext(moduleLoader)
     {
         Decompiler         = decompilerService.Decompiler,
         SyntaxHighlight    = debuggerSettings.SyntaxHighlightBreakpoints,
         UseHexadecimal     = debuggerSettings.UseHexadecimal,
         ShowTokens         = breakpointSettings.ShowTokens,
         ShowModuleNames    = breakpointSettings.ShowModuleNames,
         ShowParameterTypes = breakpointSettings.ShowParameterTypes,
         ShowParameterNames = breakpointSettings.ShowParameterNames,
         ShowOwnerTypes     = breakpointSettings.ShowOwnerTypes,
         ShowReturnTypes    = breakpointSettings.ShowReturnTypes,
         ShowNamespaces     = breakpointSettings.ShowNamespaces,
         ShowTypeKeywords   = breakpointSettings.ShowTypeKeywords,
     };
     this.breakpointService                      = breakpointService;
     this.theDebugger                            = theDebugger;
     this.breakpointList                         = new ObservableCollection <BreakpointVM>();
     breakpointSettings.PropertyChanged         += BreakpointSettings_PropertyChanged;
     breakpointService.BreakpointsAdded         += BreakpointService_BreakpointsAdded;
     breakpointService.BreakpointsRemoved       += BreakpointService_BreakpointsRemoved;
     debuggerSettings.PropertyChanged           += DebuggerSettings_PropertyChanged;
     theDebugger.OnProcessStateChanged          += TheDebugger_OnProcessStateChanged;
     themeService.ThemeChanged                  += ThemeService_ThemeChanged;
     decompilerService.DecompilerChanged        += DecompilerService_DecompilerChanged;
     inMemoryModuleService.DynamicModulesLoaded += InMemoryModuleService_DynamicModulesLoaded;
     foreach (var bp in breakpointService.GetBreakpoints())
     {
         AddBreakpoint(bp);
     }
 }
예제 #3
0
        BreakpointsVM(IDecompilerService decompilerService, IDebuggerSettings debuggerSettings, ITheDebugger theDebugger, IBreakpointService breakpointService, IBreakpointSettings breakpointSettings, Lazy <IModuleLoader> moduleLoader, IInMemoryModuleService inMemoryModuleService, IClassificationFormatMapService classificationFormatMapService, ITextElementProvider textElementProvider)
        {
            var classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap(AppearanceCategoryConstants.UIMisc);

            breakpointContext = new BreakpointContext(moduleLoader, classificationFormatMap, textElementProvider)
            {
                Decompiler         = decompilerService.Decompiler,
                SyntaxHighlight    = debuggerSettings.SyntaxHighlightBreakpoints,
                UseHexadecimal     = debuggerSettings.UseHexadecimal,
                ShowTokens         = breakpointSettings.ShowTokens,
                ShowModuleNames    = breakpointSettings.ShowModuleNames,
                ShowParameterTypes = breakpointSettings.ShowParameterTypes,
                ShowParameterNames = breakpointSettings.ShowParameterNames,
                ShowOwnerTypes     = breakpointSettings.ShowOwnerTypes,
                ShowReturnTypes    = breakpointSettings.ShowReturnTypes,
                ShowNamespaces     = breakpointSettings.ShowNamespaces,
                ShowTypeKeywords   = breakpointSettings.ShowTypeKeywords,
            };
            this.breakpointService                = breakpointService;
            this.theDebugger                      = theDebugger;
            breakpointList                        = new ObservableCollection <BreakpointVM>();
            breakpointSettings.PropertyChanged   += BreakpointSettings_PropertyChanged;
            breakpointService.BreakpointsAdded   += BreakpointService_BreakpointsAdded;
            breakpointService.BreakpointsRemoved += BreakpointService_BreakpointsRemoved;
            debuggerSettings.PropertyChanged     += DebuggerSettings_PropertyChanged;
            theDebugger.OnProcessStateChanged    += TheDebugger_OnProcessStateChanged;
            classificationFormatMap.ClassificationFormatMappingChanged += ClassificationFormatMap_ClassificationFormatMappingChanged;
            decompilerService.DecompilerChanged        += DecompilerService_DecompilerChanged;
            inMemoryModuleService.DynamicModulesLoaded += InMemoryModuleService_DynamicModulesLoaded;
            foreach (var bp in breakpointService.GetBreakpoints())
            {
                AddBreakpoint(bp);
            }
        }