public void HandleBreakpointEvent(Target target, Breakpoint breakpoint, IntPtr hThread, Context context, string eventName) { try { this.PyProcess.breakpoint_hit(target.PyTarget, eventName, context.GetIP(), context, hThread); } catch (Exception e) { _pyBoss.PrintError(e, string.Format("'Process' handler for instance '{0}' failed during attempt to call 'breakpoint_hit()':", _name)); } }
public void HandleModuleLoaded(Microsoft.Samples.Debugging.Native.LoadDllNativeEvent loadDllNativeEvent) { // Call the process module_loaded() event try { this.PyTarget.module_loaded(loadDllNativeEvent.Module.Name, (Int64)loadDllNativeEvent.Module.BaseAddress); } catch (Exception e) { _pyBoss.PrintError(e, string.Format("'Target' handler for instance '{0}' failed during attempt to call 'module_loaded()':", _name)); } }