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); } }
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); }
AutoShowDebuggerWindowsLoader(IDebuggerSettings debuggerSettings, ITheDebugger theDebugger, IDsToolWindowService toolWindowService) { this.debuggerSettings = debuggerSettings; this.theDebugger = theDebugger; this.toolWindowService = toolWindowService; theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged; }
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; }
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); }
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; }
AutoShowDebuggerWindowsLoader(IDebuggerSettings debuggerSettings, ITheDebugger theDebugger, IMainToolWindowManager mainToolWindowManager) { this.debuggerSettings = debuggerSettings; this.theDebugger = theDebugger; this.mainToolWindowManager = mainToolWindowManager; theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged; }
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; }
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); } }
public ThreadContext(ITheDebugger theDebugger, IDebuggerSettings debuggerSettings, IClassificationFormatMap classificationFormatMap, ITextElementProvider textElementProvider) { TheDebugger = theDebugger; DebuggerSettings = debuggerSettings; ClassificationFormatMap = classificationFormatMap; TextElementProvider = textElementProvider; }
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); } }
ExceptionManager(ITheDebugger theDebugger, IDefaultExceptionSettings defaultExceptionSettings) { this.theDebugger = theDebugger; this.defaultExceptionSettings = defaultExceptionSettings; RestoreDefaults(); theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged; }
MemoryVM(ITheDebugger theDebugger, IDebuggerHexBufferStreamProvider debuggerHexBufferStreamProvider) { this.theDebugger = theDebugger; this.debuggerHexBufferStreamProvider = debuggerHexBufferStreamProvider; debuggerHexBufferStreamProvider.DebuggerHexBufferStream.UnderlyingStreamChanged += DebuggerHexBufferStream_UnderlyingStreamChanged; theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged; InitializeHexStream(); }
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; }
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; }
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(); }
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; }
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(); }
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; }
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; }
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; }
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(); }
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(); }
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); }
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(); }
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; }
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); }
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(); } }
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(); } }
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; }
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; }
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); } }
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; }
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); } }
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; }
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; }
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(); } }
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; }
public ThreadContext(IImageManager imageManager, ITheDebugger theDebugger, IDebuggerSettings debuggerSettings) { this.ImageManager = imageManager; this.TheDebugger = theDebugger; this.DebuggerSettings = debuggerSettings; }
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(); }
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(); }
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; }
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(); }
public ModuleContext(IImageManager imageManager, ITheDebugger theDebugger) { this.ImageManager = imageManager; this.TheDebugger = theDebugger; }
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; }
public ModuleContext(ITheDebugger theDebugger, IClassificationFormatMap classificationFormatMap, ITextElementProvider textElementProvider) { TheDebugger = theDebugger; ClassificationFormatMap = classificationFormatMap; TextElementProvider = textElementProvider; }
StackFrameService(ITheDebugger theDebugger) { this.theDebugger = theDebugger; theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged; theDebugger.ProcessRunning += TheDebugger_ProcessRunning; }
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; }
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; }
RefreshToolBarCommand(ITheDebugger theDebugger, IAppWindow appWindow) { this.theDebugger = theDebugger; this.appWindow = appWindow; theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged; }
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; }
ExceptionService(ITheDebugger theDebugger, IDefaultExceptionSettings defaultExceptionSettings) { this.theDebugger = theDebugger; this.defaultExceptionSettings = defaultExceptionSettings; RestoreDefaults(); theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged; }