示例#1
0
 private void DebuggerService_OnDebuggingEnded(object sender, DebuggingEventArgs e)
 {
     _isDebugging = false;
     e.Debugger.DebuggerRunningChanged += Debugger_OnDebuggerRunningChanged;
     e.Debugger.DebuggerStep           += Debugger_OnDebuggerStep;
     EnableIcons();
 }
        private void DebuggerService_OnDebuggingStarted(object sender, DebuggingEventArgs e)
        {
            _valueTypeBox.DropDownItems.Clear();
            _valueTypeBox.DropDownItems.AddRange(VariableDisplayManager.Instance.ControllerNames);

            _debugger = e.Debugger;
            _debugger.DebuggerStep           += OnDebuggerOnDebuggerStep;
            _debugger.DebuggerRunningChanged += OnDebuggerOnDebuggerRunningChanged;
        }
示例#3
0
        private void DebuggerService_OnDebuggingEnded(object sender, DebuggingEventArgs e)
        {
            if (_isTesting)
            {
                this.Invoke(() => { _editor.StopTesting(); });
            }

            _isTesting = false;
            e.Debugger.DebuggerRunningChanged -= Debugger_DebuggerRunningChanged;
            _debuggerService.CurrentDebugger.NativeDebugger.Breakpoints.Remove(_mapLoadBreak);
        }
 private void DebuggerService_OnDebuggingEnded(object sender, DebuggingEventArgs e)
 {
     _debugger.DebuggerStep           -= OnDebuggerOnDebuggerStep;
     _debugger.DebuggerRunningChanged -= OnDebuggerOnDebuggerRunningChanged;
     _debugger = null;
     EnablePanel(false);
     foreach (var viewer in _fullViewers)
     {
         viewer.Close();
     }
 }
示例#5
0
 private void mainForm_OnDebuggingStarted(object sender, DebuggingEventArgs e)
 {
     _debugger = e.Debugger;
     _debugger.DebuggerStep += (o, args) =>
     {
         this.Invoke(UpdateStack);
         EnablePanel(true);
     };
     _debugger.DebuggerRunningChanged += (o, args) =>
     {
         this.Invoke(UpdateStack);
         EnablePanel(!args.Running);
     };
 }
示例#6
0
 private void DebuggerService_OnDebuggingStarted(object sender, DebuggingEventArgs e)
 {
     _debugger = e.Debugger;
     _debugger.DebuggerRunningChanged += (o, args) =>
     {
         EnablePanel(!args.Running);
         if (!args.Running)
         {
             UpdatePanel();
         }
     };
     _debugger.DebuggerStep += (o, args) =>
     {
         EnablePanel(true);
         UpdatePanel();
     };
 }
示例#7
0
        private void _debuggerService_OnDebuggingStarted(object sender, DebuggingEventArgs e)
        {
            _symbolCache.Clear();
            foreach (var maskKey in _enum.EnumMapping)
            {
                foreach (var enumVal in maskKey.Value)
                {
                    var addressFromLabel = _symbolService.SymbolTable.GetAddressFromLabel(enumVal);
                    if (addressFromLabel == null)
                    {
                        continue;
                    }

                    byte enumByteVal = (byte)addressFromLabel;
                    _symbolCache.Add(new ByteMaskKey(enumByteVal, maskKey.Key), enumVal);
                }
            }
        }
示例#8
0
        private void DebuggerService_OnDebuggingStarted(object sender, DebuggingEventArgs e)
        {
            var debugger = e.Debugger;

            debugger.DebuggerRunningChanged += Debugger_DebuggerRunningChanged;


            var mapLoadAddress = _symbolService.SymbolTable.GetAddressFromLabel("load_map");

            if (!mapLoadAddress.HasValue)
            {
                return;
            }

            var calcAddr = new CalcAddress();
            var calcPage = debugger.NativeDebugger.Memory.Flash[0x15 - (mapLoadAddress.Value >> 16)];

            calcAddr.Initialize(calcPage, (ushort)mapLoadAddress.Value);
            _mapLoadBreak = debugger.NativeDebugger.Breakpoints.Add(calcAddr);
            debugger.NativeDebugger.Breakpoint += NativeDebuggerOnBreakpoint;
        }
示例#9
0
 private void mainForm_OnDebuggingEnded(object sender, DebuggingEventArgs e)
 {
     _debugger = null;
 }
示例#10
0
 private void DebuggerService_OnDebuggingEnded(object sender, DebuggingEventArgs e)
 {
     SetDebugging(false);
 }
示例#11
0
 private void DebuggerService_OnDebuggingStarted(object sender, DebuggingEventArgs e)
 {
     e.Debugger.DebuggerRunningChanged += (o, args) => EnableDebugMenuItems();
     e.Debugger.DebuggerStep           += (o, args) => EnableDebugMenuItems();
 }
示例#12
0
 private void DebuggerService_OnDebuggingEnded(object sender, DebuggingEventArgs e)
 {
     EnableDebugMenuItems();
 }
示例#13
0
 private void mainForm_OnDebuggingStarted(object sender, DebuggingEventArgs e)
 {
     _debugger = e.Debugger;
     _debugger.DebuggerStep           += OnDebuggerOnDebuggerStep;
     _debugger.DebuggerRunningChanged += OnDebuggerOnDebuggerRunningChanged;
 }
示例#14
0
 private void mainForm_OnDebuggingEnded(object sender, DebuggingEventArgs e)
 {
     _debugger.DebuggerRunningChanged -= OnDebuggerOnDebuggerRunningChanged;
     _debugger.DebuggerStep           -= OnDebuggerOnDebuggerStep;
     _debugger = null;
 }
示例#15
0
 private void DebuggerService_OnDebuggingEnded(object sender, DebuggingEventArgs e)
 {
     EndDebug();
 }
 private void DebuggerService_OnDebuggingStarted(object sender, DebuggingEventArgs e)
 {
     Debugger = e.Debugger;
 }
示例#17
0
 private void DebuggerService_OnDebuggingStarted(object sender, DebuggingEventArgs e)
 {
     SetDebugging(true);
 }
 private void DebuggerService_OnDebuggingEnded(object sender, DebuggingEventArgs e)
 {
     Debugger = null;
 }
示例#19
0
 private void DebuggerService_OnDebuggingStarted(object sender, DebuggingEventArgs e)
 {
     this.Invoke(ShowDebugPanels);
 }