Example #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);
            }
        }
Example #2
0
 BreakpointsVM(ILanguageManager languageManager, IImageManager imageManager, IThemeManager themeManager, IDebuggerSettings debuggerSettings, ITheDebugger theDebugger, IBreakpointManager breakpointManager, IBreakpointSettings breakpointSettings, Lazy<IModuleLoader> moduleLoader, IInMemoryModuleManager inMemoryModuleManager)
 {
     this.breakpointContext = new BreakpointContext(imageManager, moduleLoader) {
         Language = languageManager.Language,
         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.breakpointManager = breakpointManager;
     this.theDebugger = theDebugger;
     this.breakpointList = new ObservableCollection<BreakpointVM>();
     breakpointSettings.PropertyChanged += BreakpointSettings_PropertyChanged;
     breakpointManager.OnListModified += BreakpointManager_OnListModified;
     debuggerSettings.PropertyChanged += DebuggerSettings_PropertyChanged;
     theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
     themeManager.ThemeChanged += ThemeManager_ThemeChanged;
     languageManager.LanguageChanged += LanguageManager_LanguageChanged;
     inMemoryModuleManager.DynamicModulesLoaded += InMemoryModuleManager_DynamicModulesLoaded;
     foreach (var bp in breakpointManager.Breakpoints)
         AddBreakpoint(bp);
 }
Example #3
0
 AutoShowDebuggerWindowsLoader(IDebuggerSettings debuggerSettings, ITheDebugger theDebugger, IDsToolWindowService toolWindowService)
 {
     this.debuggerSettings              = debuggerSettings;
     this.theDebugger                   = theDebugger;
     this.toolWindowService             = toolWindowService;
     theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
 }
Example #4
0
 OutputLogger(IOutputService outputService, ITheDebugger theDebugger, IOutputLoggerSettings outputLoggerSettings, IContentTypeRegistryService contentTypeRegistryService)
 {
     this.outputService                 = outputService;
     this.textPane                      = outputService.Create(GUID_OUTPUT_LOGGER_DEBUG, dnSpy_Debugger_Resources.DebugLoggerName, contentTypeRegistryService.GetContentType(ContentTypes.OutputDebug));
     this.outputLoggerSettings          = outputLoggerSettings;
     theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
 }
Example #5
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);
		}
Example #6
0
        LocalsVM(IImageManager imageManager, IDebuggerSettings debuggerSettings, ILocalsSettings localsSettings, IMethodLocalProvider methodLocalProvider, IStackFrameManager stackFrameManager, ITheDebugger theDebugger, IAskUser askUser)
        {
            this.dispatcher          = Dispatcher.CurrentDispatcher;
            this.askUser             = askUser;
            this.methodLocalProvider = methodLocalProvider;
            this.debuggerSettings    = debuggerSettings;
            this.stackFrameManager   = stackFrameManager;
            this.theDebugger         = theDebugger;

            this.printerContext = new PrinterContext(imageManager)
            {
                SyntaxHighlight  = debuggerSettings.SyntaxHighlightLocals,
                UseHexadecimal   = debuggerSettings.UseHexadecimal,
                TypePrinterFlags = TypePrinterFlags.ShowArrayValueSizes,
            };
            this.printerContext.TypePrinterFlags = GetTypePrinterFlags(localsSettings, this.printerContext.TypePrinterFlags);
            this.printerContext.TypePrinterFlags = GetTypePrinterFlags(debuggerSettings, this.printerContext.TypePrinterFlags);

            methodLocalProvider.NewMethodInfoAvailable += MethodLocalProvider_NewMethodInfoAvailable;
            this.rootNode = new SharpTreeNode();
            stackFrameManager.StackFramesUpdated += StackFrameManager_StackFramesUpdated;
            stackFrameManager.PropertyChanged    += StackFrameManager_PropertyChanged;
            theDebugger.OnProcessStateChanged    += TheDebugger_OnProcessStateChanged;
            theDebugger.ProcessRunning           += TheDebugger_ProcessRunning;
            debuggerSettings.PropertyChanged     += DebuggerSettings_PropertyChanged;
            localsSettings.PropertyChanged       += LocalsSettings_PropertyChanged;
        }
Example #7
0
 AutoShowDebuggerWindowsLoader(IDebuggerSettings debuggerSettings, ITheDebugger theDebugger, IMainToolWindowManager mainToolWindowManager)
 {
     this.debuggerSettings              = debuggerSettings;
     this.theDebugger                   = theDebugger;
     this.mainToolWindowManager         = mainToolWindowManager;
     theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
 }
Example #8
0
        LocalsVM(IDebuggerSettings debuggerSettings, ILocalsSettings localsSettings, IMethodLocalProvider methodLocalProvider, IStackFrameService stackFrameService, ITheDebugger theDebugger, IAskUser askUser, IClassificationFormatMapService classificationFormatMapService, ITextElementProvider textElementProvider)
        {
            dispatcher               = Dispatcher.CurrentDispatcher;
            this.askUser             = askUser;
            this.methodLocalProvider = methodLocalProvider;
            this.debuggerSettings    = debuggerSettings;
            this.stackFrameService   = stackFrameService;
            TheDebugger              = theDebugger;

            var classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap(AppearanceCategoryConstants.UIMisc);

            printerContext = new PrinterContext(classificationFormatMap, textElementProvider)
            {
                SyntaxHighlight  = debuggerSettings.SyntaxHighlightLocals,
                UseHexadecimal   = debuggerSettings.UseHexadecimal,
                TypePrinterFlags = TypePrinterFlags.ShowArrayValueSizes,
            };
            printerContext.TypePrinterFlags = GetTypePrinterFlags(localsSettings, printerContext.TypePrinterFlags);
            printerContext.TypePrinterFlags = GetTypePrinterFlags(debuggerSettings, printerContext.TypePrinterFlags);

            methodLocalProvider.NewMethodInfoAvailable += MethodLocalProvider_NewMethodInfoAvailable;
            Root = new SharpTreeNode();
            stackFrameService.StackFramesUpdated += StackFrameService_StackFramesUpdated;
            stackFrameService.PropertyChanged    += StackFrameService_PropertyChanged;
            theDebugger.OnProcessStateChanged    += TheDebugger_OnProcessStateChanged;
            theDebugger.ProcessRunning           += TheDebugger_ProcessRunning;
            debuggerSettings.PropertyChanged     += DebuggerSettings_PropertyChanged;
            localsSettings.PropertyChanged       += LocalsSettings_PropertyChanged;
            classificationFormatMap.ClassificationFormatMappingChanged += ClassificationFormatMap_ClassificationFormatMappingChanged;
        }
Example #9
0
 BreakpointsVM(ILanguageManager languageManager, IImageManager imageManager, IThemeManager themeManager, IDebuggerSettings debuggerSettings, ITheDebugger theDebugger, IBreakpointManager breakpointManager, IBreakpointSettings breakpointSettings, Lazy <IModuleLoader> moduleLoader, IInMemoryModuleManager inMemoryModuleManager)
 {
     this.breakpointContext = new BreakpointContext(imageManager, moduleLoader)
     {
         Language           = languageManager.Language,
         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.breakpointManager                      = breakpointManager;
     this.theDebugger                            = theDebugger;
     this.breakpointList                         = new ObservableCollection <BreakpointVM>();
     breakpointSettings.PropertyChanged         += BreakpointSettings_PropertyChanged;
     breakpointManager.OnListModified           += BreakpointManager_OnListModified;
     debuggerSettings.PropertyChanged           += DebuggerSettings_PropertyChanged;
     theDebugger.OnProcessStateChanged          += TheDebugger_OnProcessStateChanged;
     themeManager.ThemeChanged                  += ThemeManager_ThemeChanged;
     languageManager.LanguageChanged            += LanguageManager_LanguageChanged;
     inMemoryModuleManager.DynamicModulesLoaded += InMemoryModuleManager_DynamicModulesLoaded;
     foreach (var bp in breakpointManager.Breakpoints)
     {
         AddBreakpoint(bp);
     }
 }
Example #10
0
 public ThreadContext(ITheDebugger theDebugger, IDebuggerSettings debuggerSettings, IClassificationFormatMap classificationFormatMap, ITextElementProvider textElementProvider)
 {
     TheDebugger             = theDebugger;
     DebuggerSettings        = debuggerSettings;
     ClassificationFormatMap = classificationFormatMap;
     TextElementProvider     = textElementProvider;
 }
Example #11
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);
     }
 }
Example #12
0
 ExceptionManager(ITheDebugger theDebugger, IDefaultExceptionSettings defaultExceptionSettings)
 {
     this.theDebugger = theDebugger;
     this.defaultExceptionSettings = defaultExceptionSettings;
     RestoreDefaults();
     theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
 }
Example #13
0
 MemoryVM(ITheDebugger theDebugger, IDebuggerHexBufferStreamProvider debuggerHexBufferStreamProvider)
 {
     this.theDebugger = theDebugger;
     this.debuggerHexBufferStreamProvider = debuggerHexBufferStreamProvider;
     debuggerHexBufferStreamProvider.DebuggerHexBufferStream.UnderlyingStreamChanged += DebuggerHexBufferStream_UnderlyingStreamChanged;
     theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
     InitializeHexStream();
 }
Example #14
0
 BufferFileCreator(ITheDebugger theDebugger, HexBufferFileServiceFactory hexBufferFileServiceFactory, IDebuggerHexBufferStreamProvider debuggerHexBufferStreamProvider)
 {
     this.theDebugger = theDebugger;
     this.hexBufferFileServiceFactory     = hexBufferFileServiceFactory;
     this.debuggerHexBufferStreamProvider = debuggerHexBufferStreamProvider;
     moduleReferences = new Dictionary <HexPosition, int>();
     theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
 }
Example #15
0
 public LocArgCorValueHolder(ITheDebugger theDebugger, bool isArg, LocalsVM locals, CorValue value, int index)
 {
     this.theDebugger = theDebugger;
     this.isArg       = isArg;
     this.locals      = locals;
     this.value       = value;
     this.index       = index;
 }
		InMemoryModuleManager(ITheDebugger theDebugger, IFileTabManager fileTabManager, Lazy<IMethodAnnotations> methodAnnotations, IAppWindow appWindow) {
			this.fileTabManager = fileTabManager;
			this.fileTreeView = fileTabManager.FileTreeView;
			this.fileManager = this.fileTreeView.FileManager;
			this.appWindow = appWindow;
			this.methodAnnotations = methodAnnotations;
			this.theDebugger = theDebugger;
			theDebugger.OnProcessStateChanged_First += TheDebugger_OnProcessStateChanged_First;
		}
Example #17
0
 public MemoryVM(ITheDebugger theDebugger)
 {
     this.theDebugger = theDebugger;
     theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
     theDebugger.ProcessRunning        += TheDebugger_ProcessRunning;
     CanNotEditMemory = theDebugger.ProcessState != DebuggerProcessState.Paused;
     IsStopped        = theDebugger.ProcessState == DebuggerProcessState.Paused;
     InitializeHexDocument();
 }
Example #18
0
		StackFrameManager(ITheDebugger theDebugger, IFileTabManager fileTabManager, ITextLineObjectManager textLineObjectManager, Lazy<IModuleLoader> moduleLoader, ITextEditorUIContextManager textEditorUIContextManager) {
			this.theDebugger = theDebugger;
			this.fileTabManager = fileTabManager;
			this.textLineObjectManager = textLineObjectManager;
			this.moduleLoader = moduleLoader;
			textEditorUIContextManager.Add(OnTextEditorUIContextEvent, TextEditorUIContextManagerConstants.ORDER_DEBUGGER_CALLSTACK);
			theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
			theDebugger.ProcessRunning += TheDebugger_ProcessRunning;
		}
Example #19
0
		MemoryVM(ITheDebugger theDebugger, HexBufferFactoryService hexBufferFactoryService, HexBufferStreamFactoryService hexBufferStreamFactoryService) {
			this.theDebugger = theDebugger;
			this.hexBufferStreamFactoryService = hexBufferStreamFactoryService;
			debuggerStream = new DebuggerHexBufferStream();
			debuggerStream.UnderlyingStreamChanged += DebuggerStream_UnderlyingStreamChanged;
			Buffer = hexBufferFactoryService.Create(debuggerStream, hexBufferFactoryService.DefaultMemoryTags, disposeStream: true);
			theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
			InitializeHexStream();
		}
Example #20
0
 InMemoryModuleService(ITheDebugger theDebugger, IDocumentTabService documentTabService, Lazy <IMethodAnnotations> methodAnnotations, IAppWindow appWindow)
 {
     this.documentTabService = documentTabService;
     this.documentTreeView   = documentTabService.DocumentTreeView;
     this.documentService    = this.documentTreeView.DocumentService;
     this.appWindow          = appWindow;
     this.methodAnnotations  = methodAnnotations;
     this.theDebugger        = theDebugger;
     theDebugger.OnProcessStateChanged_First += TheDebugger_OnProcessStateChanged_First;
 }
		InMemoryModuleService(ITheDebugger theDebugger, IDocumentTabService documentTabService, Lazy<IMethodAnnotations> methodAnnotations, IAppWindow appWindow, SimpleProcessReader simpleProcessReader) {
			this.documentTabService = documentTabService;
			documentTreeView = documentTabService.DocumentTreeView;
			documentService = documentTreeView.DocumentService;
			this.appWindow = appWindow;
			this.methodAnnotations = methodAnnotations;
			this.theDebugger = theDebugger;
			this.simpleProcessReader = simpleProcessReader;
			theDebugger.OnProcessStateChanged_First += TheDebugger_OnProcessStateChanged_First;
		}
Example #22
0
 MemoryVM(ITheDebugger theDebugger, HexBufferFactoryService hexBufferFactoryService, HexBufferStreamFactoryService hexBufferStreamFactoryService)
 {
     this.theDebugger = theDebugger;
     this.hexBufferStreamFactoryService = hexBufferStreamFactoryService;
     debuggerStream = new DebuggerHexBufferStream();
     debuggerStream.UnderlyingStreamChanged += DebuggerStream_UnderlyingStreamChanged;
     Buffer = hexBufferFactoryService.Create(debuggerStream, hexBufferFactoryService.DefaultMemoryTags, disposeStream: true);
     theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
     InitializeHexStream();
 }
Example #23
0
 InMemoryModuleManager(ITheDebugger theDebugger, IFileTabManager fileTabManager, Lazy <IMethodAnnotations> methodAnnotations, IAppWindow appWindow)
 {
     this.fileTabManager                 = fileTabManager;
     this.fileTreeView                   = fileTabManager.FileTreeView;
     this.fileManager                    = this.fileTreeView.FileManager;
     this.appWindow                      = appWindow;
     this.methodAnnotations              = methodAnnotations;
     this.theDebugger                    = theDebugger;
     theDebugger.OnProcessStateChanged2 += TheDebugger_OnProcessStateChanged2;
 }
Example #24
0
 StackFrameManager(ITheDebugger theDebugger, IFileTabManager fileTabManager, ITextLineObjectManager textLineObjectManager, Lazy <IModuleLoader> moduleLoader, ITextEditorUIContextManager textEditorUIContextManager)
 {
     this.theDebugger           = theDebugger;
     this.fileTabManager        = fileTabManager;
     this.textLineObjectManager = textLineObjectManager;
     this.moduleLoader          = moduleLoader;
     textEditorUIContextManager.Add(OnTextEditorUIContextEvent, TextEditorUIContextManagerConstants.ORDER_DEBUGGER_CALLSTACK);
     theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
     theDebugger.ProcessRunning        += TheDebugger_ProcessRunning;
 }
Example #25
0
		Debugger(ITheDebugger theDebugger, Lazy<IStackFrameService> stackFrameService, Lazy<IDebugService> debugService) {
			dispatcher = Dispatcher.CurrentDispatcher;
			this.theDebugger = theDebugger;
			this.theDebugger.OnProcessStateChanged_Last += TheDebugger_OnProcessStateChanged_Last;
			this.stackFrameService = stackFrameService;
			this.debugService = debugService;
			pausedOrTerminatedEvent = new ManualResetEvent(false);
			runningEvent = new ManualResetEvent(false);
			InitializeProcessHandle();
			InitializePausedOrTerminatedEvent();
		}
Example #26
0
 Debugger(ITheDebugger theDebugger, Lazy <IStackFrameManager> stackFrameManager, Lazy <IDebugManager> debugManager)
 {
     this.dispatcher  = Dispatcher.CurrentDispatcher;
     this.theDebugger = theDebugger;
     this.theDebugger.OnProcessStateChanged_Last += TheDebugger_OnProcessStateChanged_Last;
     this.stackFrameManager       = stackFrameManager;
     this.debugManager            = debugManager;
     this.pausedOrTerminatedEvent = new ManualResetEvent(false);
     this.runningEvent            = new ManualResetEvent(false);
     InitializeProcessHandle();
     InitializePausedOrTerminatedEvent();
 }
Example #27
0
		ModulesVM(ITheDebugger theDebugger, IDebuggerSettings debuggerSettings, IImageManager imageManager) {
			this.theDebugger = theDebugger;
			this.moduleContext = new ModuleContext(imageManager, theDebugger) {
				SyntaxHighlight = debuggerSettings.SyntaxHighlightModules,
				UseHexadecimal = debuggerSettings.UseHexadecimal,
			};
			this.modulesList = new ObservableCollection<ModuleVM>();
			theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
			debuggerSettings.PropertyChanged += DebuggerSettings_PropertyChanged;
			if (theDebugger.ProcessState != DebuggerProcessState.Terminated)
				InstallDebuggerHooks(theDebugger.Debugger);
		}
Example #28
0
 Debugger(ITheDebugger theDebugger, Lazy <IStackFrameService> stackFrameService, Lazy <IDebugService> debugService)
 {
     dispatcher       = Dispatcher.CurrentDispatcher;
     this.theDebugger = theDebugger;
     this.theDebugger.OnProcessStateChanged_Last += TheDebugger_OnProcessStateChanged_Last;
     this.stackFrameService  = stackFrameService;
     this.debugService       = debugService;
     pausedOrTerminatedEvent = new ManualResetEvent(false);
     runningEvent            = new ManualResetEvent(false);
     InitializeProcessHandle();
     InitializePausedOrTerminatedEvent();
 }
Example #29
0
		ThreadsVM(ITheDebugger theDebugger, IStackFrameManager stackFrameManager, IDebuggerSettings debuggerSettings, IImageManager imageManager) {
			this.theDebugger = theDebugger;
			this.stackFrameManager = stackFrameManager;
			this.threadContext = new ThreadContext(imageManager, theDebugger, debuggerSettings) {
				SyntaxHighlight = debuggerSettings.SyntaxHighlightThreads,
				UseHexadecimal = debuggerSettings.UseHexadecimal,
			};
			this.threadsList = new ObservableCollection<ThreadVM>();
			stackFrameManager.StackFramesUpdated += StackFrameManager_StackFramesUpdated;
			stackFrameManager.PropertyChanged += StackFrameManager_PropertyChanged;
			theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
			debuggerSettings.PropertyChanged += DebuggerSettings_PropertyChanged;
			theDebugger.ProcessRunning += TheDebugger_ProcessRunning;
		}
Example #30
0
		ModulesVM(ITheDebugger theDebugger, IDebuggerSettings debuggerSettings, IClassificationFormatMapService classificationFormatMapService, ITextElementProvider textElementProvider) {
			var classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap(AppearanceCategoryConstants.UIMisc);
			this.theDebugger = theDebugger;
			moduleContext = new ModuleContext(theDebugger, classificationFormatMap, textElementProvider) {
				SyntaxHighlight = debuggerSettings.SyntaxHighlightModules,
				UseHexadecimal = debuggerSettings.UseHexadecimal,
			};
			modulesList = new ObservableCollection<ModuleVM>();
			theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
			debuggerSettings.PropertyChanged += DebuggerSettings_PropertyChanged;
			classificationFormatMap.ClassificationFormatMappingChanged += ClassificationFormatMap_ClassificationFormatMappingChanged;
			if (theDebugger.ProcessState != DebuggerProcessState.Terminated)
				InstallDebuggerHooks(theDebugger.Debugger);
		}
Example #31
0
        BreakpointService(IDocumentTabService documentTabService, ITheDebugger theDebugger, IMessageBoxService messageBoxService, IModuleIdProvider moduleIdProvider, [ImportMany] IEnumerable <Lazy <IBreakpointListener> > breakpointListeners)
        {
            this.documentTabService  = documentTabService;
            this.theDebugger         = theDebugger;
            this.messageBoxService   = messageBoxService;
            this.moduleIdProvider    = moduleIdProvider;
            this.breakpointListeners = breakpointListeners.ToArray();

            documentTabService.DocumentCollectionChanged += DocumentTabService_FileCollectionChanged;
            theDebugger.OnProcessStateChanged            += TheDebugger_OnProcessStateChanged;
            if (theDebugger.IsDebugging)
            {
                AddDebuggerBreakpoints();
            }
        }
Example #32
0
        BreakpointManager(IFileTabManager fileTabManager, ITheDebugger theDebugger, IMessageBoxManager messageBoxManager, IModuleIdProvider moduleIdProvider, [ImportMany] IEnumerable <Lazy <IBreakpointListener> > breakpointListeners)
        {
            this.fileTabManager      = fileTabManager;
            this.theDebugger         = theDebugger;
            this.messageBoxManager   = messageBoxManager;
            this.moduleIdProvider    = moduleIdProvider;
            this.breakpointListeners = breakpointListeners.ToArray();

            fileTabManager.FileCollectionChanged += FileTabManager_FileCollectionChanged;
            theDebugger.OnProcessStateChanged    += TheDebugger_OnProcessStateChanged;
            if (theDebugger.IsDebugging)
            {
                AddDebuggerBreakpoints();
            }
        }
Example #33
0
		ThreadsVM(ITheDebugger theDebugger, IStackFrameService stackFrameService, IDebuggerSettings debuggerSettings, IClassificationFormatMapService classificationFormatMapService, ITextElementProvider textElementProvider) {
			this.theDebugger = theDebugger;
			this.stackFrameService = stackFrameService;
			var classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap(AppearanceCategoryConstants.UIMisc);
			threadContext = new ThreadContext(theDebugger, debuggerSettings, classificationFormatMap, textElementProvider) {
				SyntaxHighlight = debuggerSettings.SyntaxHighlightThreads,
				UseHexadecimal = debuggerSettings.UseHexadecimal,
			};
			threadsList = new ObservableCollection<ThreadVM>();
			stackFrameService.StackFramesUpdated += StackFrameService_StackFramesUpdated;
			stackFrameService.PropertyChanged += StackFrameService_PropertyChanged;
			theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
			debuggerSettings.PropertyChanged += DebuggerSettings_PropertyChanged;
			theDebugger.ProcessRunning += TheDebugger_ProcessRunning;
			classificationFormatMap.ClassificationFormatMappingChanged += ClassificationFormatMap_ClassificationFormatMappingChanged;
		}
Example #34
0
 ThreadsVM(ITheDebugger theDebugger, IStackFrameService stackFrameService, IDebuggerSettings debuggerSettings)
 {
     this.theDebugger       = theDebugger;
     this.stackFrameService = stackFrameService;
     this.threadContext     = new ThreadContext(theDebugger, debuggerSettings)
     {
         SyntaxHighlight = debuggerSettings.SyntaxHighlightThreads,
         UseHexadecimal  = debuggerSettings.UseHexadecimal,
     };
     this.threadsList = new ObservableCollection <ThreadVM>();
     stackFrameService.StackFramesUpdated += StackFrameService_StackFramesUpdated;
     stackFrameService.PropertyChanged    += StackFrameService_PropertyChanged;
     theDebugger.OnProcessStateChanged    += TheDebugger_OnProcessStateChanged;
     debuggerSettings.PropertyChanged     += DebuggerSettings_PropertyChanged;
     theDebugger.ProcessRunning           += TheDebugger_ProcessRunning;
 }
Example #35
0
 ModulesVM(ITheDebugger theDebugger, IDebuggerSettings debuggerSettings, IImageManager imageManager)
 {
     this.theDebugger   = theDebugger;
     this.moduleContext = new ModuleContext(imageManager, theDebugger)
     {
         SyntaxHighlight = debuggerSettings.SyntaxHighlightModules,
         UseHexadecimal  = debuggerSettings.UseHexadecimal,
     };
     this.modulesList = new ObservableCollection <ModuleVM>();
     theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
     debuggerSettings.PropertyChanged  += DebuggerSettings_PropertyChanged;
     if (theDebugger.ProcessState != DebuggerProcessState.Terminated)
     {
         InstallDebuggerHooks(theDebugger.Debugger);
     }
 }
Example #36
0
        CallStackVM(IDebuggerSettings debuggerSettings, ICallStackSettings callStackSettings, IStackFrameManager stackFrameManager, ITheDebugger theDebugger, IImageManager imageManager)
        {
            this.debuggerSettings = debuggerSettings;
            this.callStackSettings = callStackSettings;
            this.theDebugger = theDebugger;
            this.stackFrameManager = stackFrameManager;
            this.framesList = new ObservableCollection<ICallStackFrameVM>();
            this.callStackFrameContext = new CallStackFrameContext(imageManager) {
                TypePrinterFlags = TypePrinterFlags,
                SyntaxHighlight = debuggerSettings.SyntaxHighlightCallStack,
            };

            stackFrameManager.StackFramesUpdated += StackFrameManager_StackFramesUpdated;
            stackFrameManager.PropertyChanged += StackFrameManager_PropertyChanged;
            callStackSettings.PropertyChanged += CallStackSettings_PropertyChanged;
            debuggerSettings.PropertyChanged += DebuggerSettings_PropertyChanged;
            theDebugger.ProcessRunning += TheDebugger_ProcessRunning;
        }
Example #37
0
        ModulesVM(ITheDebugger theDebugger, IDebuggerSettings debuggerSettings, IClassificationFormatMapService classificationFormatMapService, ITextElementProvider textElementProvider)
        {
            var classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap(AppearanceCategoryConstants.ModulesWindow);

            this.theDebugger   = theDebugger;
            this.moduleContext = new ModuleContext(theDebugger, classificationFormatMap, textElementProvider)
            {
                SyntaxHighlight = debuggerSettings.SyntaxHighlightModules,
                UseHexadecimal  = debuggerSettings.UseHexadecimal,
            };
            this.modulesList = new ObservableCollection <ModuleVM>();
            theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
            debuggerSettings.PropertyChanged  += DebuggerSettings_PropertyChanged;
            classificationFormatMap.ClassificationFormatMappingChanged += ClassificationFormatMap_ClassificationFormatMappingChanged;
            if (theDebugger.ProcessState != DebuggerProcessState.Terminated)
            {
                InstallDebuggerHooks(theDebugger.Debugger);
            }
        }
Example #38
0
        ThreadsVM(ITheDebugger theDebugger, IStackFrameService stackFrameService, IDebuggerSettings debuggerSettings, IClassificationFormatMapService classificationFormatMapService, ITextElementProvider textElementProvider)
        {
            this.theDebugger       = theDebugger;
            this.stackFrameService = stackFrameService;
            var classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap(AppearanceCategoryConstants.UIMisc);

            threadContext = new ThreadContext(theDebugger, debuggerSettings, classificationFormatMap, textElementProvider)
            {
                SyntaxHighlight = debuggerSettings.SyntaxHighlightThreads,
                UseHexadecimal  = debuggerSettings.UseHexadecimal,
            };
            threadsList = new ObservableCollection <ThreadVM>();
            stackFrameService.StackFramesUpdated += StackFrameService_StackFramesUpdated;
            stackFrameService.PropertyChanged    += StackFrameService_PropertyChanged;
            theDebugger.OnProcessStateChanged    += TheDebugger_OnProcessStateChanged;
            debuggerSettings.PropertyChanged     += DebuggerSettings_PropertyChanged;
            theDebugger.ProcessRunning           += TheDebugger_ProcessRunning;
            classificationFormatMap.ClassificationFormatMappingChanged += ClassificationFormatMap_ClassificationFormatMappingChanged;
        }
Example #39
0
        CallStackVM(IDebuggerSettings debuggerSettings, ICallStackSettings callStackSettings, IStackFrameManager stackFrameManager, ITheDebugger theDebugger, IImageManager imageManager)
        {
            this.debuggerSettings      = debuggerSettings;
            this.callStackSettings     = callStackSettings;
            this.theDebugger           = theDebugger;
            this.stackFrameManager     = stackFrameManager;
            this.framesList            = new ObservableCollection <ICallStackFrameVM>();
            this.callStackFrameContext = new CallStackFrameContext(imageManager)
            {
                TypePrinterFlags = TypePrinterFlags,
                SyntaxHighlight  = debuggerSettings.SyntaxHighlightCallStack,
            };

            stackFrameManager.StackFramesUpdated += StackFrameManager_StackFramesUpdated;
            stackFrameManager.PropertyChanged    += StackFrameManager_PropertyChanged;
            callStackSettings.PropertyChanged    += CallStackSettings_PropertyChanged;
            debuggerSettings.PropertyChanged     += DebuggerSettings_PropertyChanged;
            theDebugger.ProcessRunning           += TheDebugger_ProcessRunning;
        }
Example #40
0
        BreakpointManager(ITextLineObjectManager textLineObjectManager, IFileTabManager fileTabManager, ITheDebugger theDebugger, IMessageBoxManager messageBoxManager, ISerializedDnModuleCreator serializedDnModuleCreator)
        {
            this.textLineObjectManager            = textLineObjectManager;
            this.fileTabManager                   = fileTabManager;
            this.theDebugger                      = theDebugger;
            this.messageBoxManager                = messageBoxManager;
            this.serializedDnModuleCreator        = serializedDnModuleCreator;
            textLineObjectManager.OnListModified += MarkedTextLinesManager_OnListModified;
            foreach (var bp in Breakpoints)
            {
                InitializeDebuggerBreakpoint(bp);
            }

            fileTabManager.FileCollectionChanged += FileTabManager_FileCollectionChanged;
            theDebugger.OnProcessStateChanged    += TheDebugger_OnProcessStateChanged;
            if (theDebugger.IsDebugging)
            {
                AddDebuggerBreakpoints();
            }
        }
Example #41
0
        CallStackVM(IDebuggerSettings debuggerSettings, ICallStackSettings callStackSettings, IStackFrameService stackFrameService, ITheDebugger theDebugger, IClassificationFormatMapService classificationFormatMapService, ITextElementProvider textElementProvider)
        {
            var classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap(AppearanceCategoryConstants.UIMisc);

            this.debuggerSettings  = debuggerSettings;
            this.callStackSettings = callStackSettings;
            this.theDebugger       = theDebugger;
            this.stackFrameService = stackFrameService;
            framesList             = new ObservableCollection <ICallStackFrameVM>();
            callStackFrameContext  = new CallStackFrameContext(classificationFormatMap, textElementProvider)
            {
                TypePrinterFlags = TypePrinterFlags,
                SyntaxHighlight  = debuggerSettings.SyntaxHighlightCallStack,
            };

            stackFrameService.StackFramesUpdated += StackFrameService_StackFramesUpdated;
            stackFrameService.PropertyChanged    += StackFrameService_PropertyChanged;
            callStackSettings.PropertyChanged    += CallStackSettings_PropertyChanged;
            debuggerSettings.PropertyChanged     += DebuggerSettings_PropertyChanged;
            theDebugger.ProcessRunning           += TheDebugger_ProcessRunning;
            classificationFormatMap.ClassificationFormatMappingChanged += ClassificationFormatMap_ClassificationFormatMappingChanged;
        }
Example #42
0
		public ThreadContext(IImageManager imageManager, ITheDebugger theDebugger, IDebuggerSettings debuggerSettings) {
			this.ImageManager = imageManager;
			this.TheDebugger = theDebugger;
			this.DebuggerSettings = debuggerSettings;
		}
Example #43
0
		public MemoryVM(ITheDebugger theDebugger) {
			this.theDebugger = theDebugger;
			theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
			theDebugger.ProcessRunning += TheDebugger_ProcessRunning;
			CanNotEditMemory = theDebugger.ProcessState != DebuggerProcessState.Stopped;
			IsStopped = theDebugger.ProcessState == DebuggerProcessState.Stopped;
			InitializeHexDocument();
		}
Example #44
0
        BreakpointManager(ITextLineObjectManager textLineObjectManager, IFileTabManager fileTabManager, ITheDebugger theDebugger, IMessageBoxManager messageBoxManager, ISerializedDnModuleCreator serializedDnModuleCreator)
        {
            this.textLineObjectManager = textLineObjectManager;
            this.fileTabManager = fileTabManager;
            this.theDebugger = theDebugger;
            this.messageBoxManager = messageBoxManager;
            this.serializedDnModuleCreator = serializedDnModuleCreator;
            textLineObjectManager.OnListModified += MarkedTextLinesManager_OnListModified;
            foreach (var bp in Breakpoints)
                InitializeDebuggerBreakpoint(bp);

            fileTabManager.FileCollectionChanged += FileTabManager_FileCollectionChanged;
            theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
            if (theDebugger.IsDebugging)
                AddDebuggerBreakpoints();
        }
Example #45
0
		public ThreadContext(ITheDebugger theDebugger, IDebuggerSettings debuggerSettings, IClassificationFormatMap classificationFormatMap, ITextElementProvider textElementProvider) {
			TheDebugger = theDebugger;
			DebuggerSettings = debuggerSettings;
			ClassificationFormatMap = classificationFormatMap;
			TextElementProvider = textElementProvider;
		}
Example #46
0
		BreakpointService(IDocumentTabService documentTabService, ITheDebugger theDebugger, IMessageBoxService messageBoxService, IModuleIdProvider moduleIdProvider, [ImportMany] IEnumerable<Lazy<IBreakpointListener>> breakpointListeners) {
			this.documentTabService = documentTabService;
			this.theDebugger = theDebugger;
			this.messageBoxService = messageBoxService;
			this.moduleIdProvider = moduleIdProvider;
			this.breakpointListeners = breakpointListeners.ToArray();

			documentTabService.DocumentCollectionChanged += DocumentTabService_FileCollectionChanged;
			theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
			if (theDebugger.IsDebugging)
				AddDebuggerBreakpoints();
		}
		public DebuggedProcessRunningNotifier(ITheDebugger theDebugger) {
			this.dispatcher = Dispatcher.CurrentDispatcher;
			this.theDebugger = theDebugger;
			theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
		}
Example #48
0
		Debugger(ITheDebugger theDebugger, Lazy<IStackFrameManager> stackFrameManager, Lazy<IDebugManager> debugManager) {
			this.dispatcher = Dispatcher.CurrentDispatcher;
			this.theDebugger = theDebugger;
			this.theDebugger.OnProcessStateChanged_Last += TheDebugger_OnProcessStateChanged_Last;
			this.stackFrameManager = stackFrameManager;
			this.debugManager = debugManager;
			this.pausedOrTerminatedEvent = new ManualResetEvent(false);
			this.runningEvent = new ManualResetEvent(false);
			InitializeProcessHandle();
			InitializePausedOrTerminatedEvent();
		}
Example #49
0
		public ModuleContext(IImageManager imageManager, ITheDebugger theDebugger) {
			this.ImageManager = imageManager;
			this.TheDebugger = theDebugger;
		}
Example #50
0
		CallStackVM(IDebuggerSettings debuggerSettings, ICallStackSettings callStackSettings, IStackFrameService stackFrameService, ITheDebugger theDebugger, IClassificationFormatMapService classificationFormatMapService, ITextElementProvider textElementProvider) {
			var classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap(AppearanceCategoryConstants.UIMisc);
			this.debuggerSettings = debuggerSettings;
			this.callStackSettings = callStackSettings;
			this.theDebugger = theDebugger;
			this.stackFrameService = stackFrameService;
			framesList = new ObservableCollection<ICallStackFrameVM>();
			callStackFrameContext = new CallStackFrameContext(classificationFormatMap, textElementProvider) {
				TypePrinterFlags = TypePrinterFlags,
				SyntaxHighlight = debuggerSettings.SyntaxHighlightCallStack,
			};

			stackFrameService.StackFramesUpdated += StackFrameService_StackFramesUpdated;
			stackFrameService.PropertyChanged += StackFrameService_PropertyChanged;
			callStackSettings.PropertyChanged += CallStackSettings_PropertyChanged;
			debuggerSettings.PropertyChanged += DebuggerSettings_PropertyChanged;
			theDebugger.ProcessRunning += TheDebugger_ProcessRunning;
			classificationFormatMap.ClassificationFormatMappingChanged += ClassificationFormatMap_ClassificationFormatMappingChanged;
		}
Example #51
0
		public ModuleContext(ITheDebugger theDebugger, IClassificationFormatMap classificationFormatMap, ITextElementProvider textElementProvider) {
			TheDebugger = theDebugger;
			ClassificationFormatMap = classificationFormatMap;
			TextElementProvider = textElementProvider;
		}
Example #52
0
		StackFrameService(ITheDebugger theDebugger) {
			this.theDebugger = theDebugger;
			theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
			theDebugger.ProcessRunning += TheDebugger_ProcessRunning;
		}
Example #53
0
		DebugManager(IAppWindow appWindow, IFileTabManager fileTabManager, IMessageBoxManager messageBoxManager, IDebuggerSettings debuggerSettings, ITheDebugger theDebugger, IStackFrameManager stackFrameManager, Lazy<IModuleLoader> moduleLoader, Lazy<IInMemoryModuleManager> inMemoryModuleManager, ISerializedDnModuleCreator serializedDnModuleCreator) {
			this.appWindow = appWindow;
			this.fileTabManager = fileTabManager;
			this.messageBoxManager = messageBoxManager;
			this.debuggerSettings = debuggerSettings;
			this.theDebugger = theDebugger;
			this.stackFrameManager = stackFrameManager;
			this.moduleLoader = moduleLoader;
			this.inMemoryModuleManager = inMemoryModuleManager;
			this.serializedDnModuleCreator = serializedDnModuleCreator;
			stackFrameManager.PropertyChanged += StackFrameManager_PropertyChanged;
			theDebugger.ProcessRunning += TheDebugger_ProcessRunning;
			theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
			appWindow.MainWindowClosing += AppWindow_MainWindowClosing;
			debuggerSettings.PropertyChanged += DebuggerSettings_PropertyChanged;
		}
Example #54
0
		OutputLogger(IOutputService outputService, ITheDebugger theDebugger, IOutputLoggerSettings outputLoggerSettings, IContentTypeRegistryService contentTypeRegistryService) {
			this.outputService = outputService;
			textPane = outputService.Create(GUID_OUTPUT_LOGGER_DEBUG, dnSpy_Debugger_Resources.DebugLoggerName, contentTypeRegistryService.GetContentType(ContentTypes.OutputDebug));
			this.outputLoggerSettings = outputLoggerSettings;
			theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
		}
Example #55
0
 RefreshToolBarCommand(ITheDebugger theDebugger, IAppWindow appWindow)
 {
     this.theDebugger = theDebugger;
     this.appWindow   = appWindow;
     theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
 }
Example #56
0
		DebugService(IAppWindow appWindow, IDocumentTabService documentTabService, IMessageBoxService messageBoxService, IDebuggerSettings debuggerSettings, ITheDebugger theDebugger, IStackFrameService stackFrameService, Lazy<IModuleLoader> moduleLoader, Lazy<IInMemoryModuleService> inMemoryModuleService, IModuleIdProvider moduleIdProvider, IClassificationFormatMapService classificationFormatMapService, ITextElementProvider textElementProvider) {
			this.appWindow = appWindow;
			this.documentTabService = documentTabService;
			this.messageBoxService = messageBoxService;
			DebuggerSettings = debuggerSettings;
			this.theDebugger = theDebugger;
			StackFrameService = stackFrameService;
			this.moduleLoader = moduleLoader;
			this.inMemoryModuleService = inMemoryModuleService;
			this.moduleIdProvider = moduleIdProvider;
			this.classificationFormatMapService = classificationFormatMapService;
			this.textElementProvider = textElementProvider;
			stackFrameService.PropertyChanged += StackFrameService_PropertyChanged;
			theDebugger.ProcessRunning += TheDebugger_ProcessRunning;
			theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
			appWindow.MainWindowClosing += AppWindow_MainWindowClosing;
			debuggerSettings.PropertyChanged += DebuggerSettings_PropertyChanged;
		}
Example #57
0
		ExceptionService(ITheDebugger theDebugger, IDefaultExceptionSettings defaultExceptionSettings) {
			this.theDebugger = theDebugger;
			this.defaultExceptionSettings = defaultExceptionSettings;
			RestoreDefaults();
			theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
		}