private void OnBreakpointClick(object sender, MouseButtonEventArgs e) { if (this.breakpoint == null) { this.breakpoint = Application.Debugger.SetBreakpoint(this.symbol.Value); } else { Application.Debugger.ClearBreakpoint(this.symbol.Value); this.breakpoint = null; } this.UpdateBPText(); }
public SymbolContextItem(CodeUnit unit, SymbolEntry symbol) { this.InitializeComponent(); this.unit = unit; this.symbol = symbol; this.symbolText.Text = symbol.Name; // Check if breakpoint already set - if so, give option to clear this.breakpoint = Application.Debugger.Breakpoints.GetBreakpoint(symbol.Value); if (this.breakpoint != null && !this.breakpoint.IsActive) { this.breakpoint = null; } this.UpdateBPText(); }
private void UpdateBreakpoints() { IEnumerable<Breakpoint> breakpoints; if (Application.Debugger == null) { breakpoints = new Breakpoint[0]; } else breakpoints = Application.Debugger.Breakpoints; foreach (SymbolItem item in this.itemStack.Children) { item.ClearBreakpoint(); foreach (Breakpoint bp in breakpoints) { if (item.symbol.Value == bp.Address && bp.IsActive) { item.SetBreakpoint(); break; } } } }
public BreakpointHitEventArgs(Breakpoint Breakpoint) { this.Breakpoint = Breakpoint; }
public BreakpointChangedEventArgs(Breakpoint breakpoint) { this.Breakpoint = breakpoint; }