コード例 #1
0
 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();
 }
コード例 #2
0
        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();
        }
コード例 #3
0
ファイル: SymbolExplorer.xaml.cs プロジェクト: jsren/DebugOS
        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;
                    }
                }
            }
        }
コード例 #4
0
 public BreakpointHitEventArgs(Breakpoint Breakpoint)
 {
     this.Breakpoint = Breakpoint;
 }
コード例 #5
0
 public BreakpointChangedEventArgs(Breakpoint breakpoint)
 {
     this.Breakpoint = breakpoint;
 }