Ejemplo n.º 1
0
        public bool GetIsVisible(IStackFrame frame)
        {
            Contract.Requires<ArgumentNullException>(frame != null, "frame");
            Contract.Requires<VirtualMachineMismatchException>(this.GetVirtualMachine().Equals(frame.GetVirtualMachine()));

            throw new NotImplementedException();
        }
Ejemplo n.º 2
0
 public LocalsWindow(IDebuggerSession session, IExecutionProvider executionProvider)
 {
     this.session = session;
     this.executionProvider = executionProvider;
     this.executionProvider.Suspended += (thread) => {
             QueueUserWorkItem (() => pendingFrame = thread.GetFrames ().FirstOrDefault());
         };
 }
Ejemplo n.º 3
0
        public bool GetIsVisible(IStackFrame frame)
        {
            StackFrame stackFrame = frame as StackFrame;
            if (stackFrame == null)
                throw new VirtualMachineMismatchException();

            ulong codeIndex = (uint)stackFrame.Location.CodeIndex;
            return _variableData.CodeIndex <= codeIndex && codeIndex < _variableData.CodeIndex + _variableData.Length;
        }
Ejemplo n.º 4
0
        public JavaDebugStackFrame(JavaDebugThread thread, IStackFrame stackFrame)
        {
            Contract.Requires<ArgumentNullException>(thread != null, "thread");
            Contract.Requires<ArgumentNullException>(stackFrame != null, "stackFrame");

            _thread = thread;
            _stackFrame = stackFrame;

            _nativeMethod = stackFrame.GetLocation().GetMethod().GetIsNative();
            if (!_nativeMethod)
                _debugProperty = new StackFrameDebugProperty(this);
        }
Ejemplo n.º 5
0
 public IDebuggerValue ReadStaticField(IStackFrame frame, uint token)
 {
     return debugger.Dispatcher.UI(() => {
         var value = type.GetStaticFieldValue(token, ((StackFrame)frame).CorFrame);
         return value == null ? null : new DebuggerValue(debugger, value);
     });
 }
Ejemplo n.º 6
0
 public IDebuggerValue ReadStaticField(IStackFrame frame, string name, bool checkBaseClasses) => debugger.Dispatcher.UI(() => {
     var field = GetField(name, checkBaseClasses);
     return(field == null ? null : ReadStaticField(frame, field.Token));
 });
Ejemplo n.º 7
0
 public IDebuggerValue ReadStaticField(IStackFrame frame, IDebuggerField field) => ReadStaticField(frame, field.Token);
Ejemplo n.º 8
0
		public Task<bool> RunToAsync(IStackFrame frame, int millisecondsTimeout) {
			RunTo(frame);
			return WaitAsync(millisecondsTimeout);
		}
Ejemplo n.º 9
0
		public bool RunToWait(IStackFrame frame, CancellationToken token, int millisecondsTimeout) {
			RunTo(frame);
			return Wait(token, millisecondsTimeout);
		}
Ejemplo n.º 10
0
		public Task<bool> StepOutAsync(IStackFrame frame, int millisecondsTimeout) {
			StepOut(frame);
			return WaitAsync(millisecondsTimeout);
		}
Ejemplo n.º 11
0
		public bool StepOutWait(IStackFrame frame, CancellationToken token, int millisecondsTimeout) {
			StepOut(frame);
			return Wait(token, millisecondsTimeout);
		}
Ejemplo n.º 12
0
 public bool RunToWait(IStackFrame frame, int millisecondsTimeout)
 {
     RunTo(frame);
     return(Wait(millisecondsTimeout));
 }
Ejemplo n.º 13
0
 public bool SetNativeOffset(IStackFrame frame, int offset) => dispatcher.UI(() => {
     string errMsg;
     return(debugManager.Value.SetNativeOffset(((StackFrame)frame).CorFrame, (uint)offset, out errMsg));
 });
Ejemplo n.º 14
0
		public bool SetNativeOffset(IStackFrame frame, int offset) {
			return dispatcher.UI(() => {
				string errMsg;
				return debugManager.Value.SetNativeOffset(((StackFrame)frame).CorFrame, (uint)offset, out errMsg);
			});
		}
Ejemplo n.º 15
0
 public IDebuggerValue ReadStaticField(IStackFrame frame, string name, bool checkBaseClasses)
 {
     return debugger.Dispatcher.UI(() => {
         var field = GetField(name, checkBaseClasses);
         return field == null ? null : ReadStaticField(frame, field.Token);
     });
 }
Ejemplo n.º 16
0
		public bool RunTo(IStackFrame frame) {
			return dispatcher.UI(() => debugManager.Value.RunTo(((StackFrame)frame).CorFrame));
		}
Ejemplo n.º 17
0
		public void StepOut(IStackFrame frame) {
			dispatcher.UI(() => debugManager.Value.StepOut(((StackFrame)frame).CorFrame));
		}
Ejemplo n.º 18
0
 public IDebuggerValue ReadStaticField(IStackFrame frame, IDebuggerField field)
 {
     return(ReadStaticField(frame, field.Token));
 }
Ejemplo n.º 19
0
 private static int?GetFileColumnNumber(IStackFrame frame)
 {
     return(frame.GetFileColumnNumber());
 }
Ejemplo n.º 20
0
 public static IReifiedType <TValue> GetReifiedType <TValue>(this IValueServicesFacade <TValue> valueServices,
                                                             IStackFrame frame, string aqn)
     where TValue : class
 {
     return((IReifiedType <TValue>)valueServices.TypeUniverse.GetReifiedType(frame, aqn));
 }
Ejemplo n.º 21
0
 public IDebuggerValue ReadStaticField(IStackFrame frame, uint token) => debugger.Dispatcher.UI(() => {
     var value = type.GetStaticFieldValue(token, ((StackFrame)frame).CorFrame);
     return(value == null ? null : new DebuggerValue(debugger, value));
 });
        private void ShowNewError(string message, IStackFrame[] stack, int errorCookie)
        {
            DispatcherHelpers.RunOnDispatcher(() =>
            {
                if (_redBoxDialog == null)
                {
                    _redBoxDialog = new RedBoxDialog(HandleReloadJavaScript);
                }

                if (_redBoxDialogOpen)
                {
                    return;
                }

                _redBoxDialogOpen = true;
                _redBoxDialog.ErrorCookie = errorCookie;
                _redBoxDialog.Message = message;
                _redBoxDialog.StackTrace = stack;
                _redBoxDialog.Closed += (_, __) =>
                {
                    _redBoxDialogOpen = false;
                    _dismissRedBoxDialog = null;
                    _redBoxDialog = null;
                };

#if WINDOWS_UWP
                var asyncInfo = _redBoxDialog.ShowAsync();
                _dismissRedBoxDialog = asyncInfo.Cancel;
#else
                var asyncInfo = _redBoxDialog.ShowDialog();
                _dismissRedBoxDialog = _redBoxDialog.Hide;
#endif
            });
        }
Ejemplo n.º 23
0
 public bool RunToWait(IStackFrame frame, CancellationToken token, int millisecondsTimeout)
 {
     RunTo(frame);
     return(Wait(token, millisecondsTimeout));
 }
Ejemplo n.º 24
0
 protected override IProperty CreateProperty(IStackFrame frame, VariableInfo info)
 {
     return(new ILProperty(engine, ((AD7StackFrame)frame).Thread, info, (AD7StackFrame)frame));
 }
Ejemplo n.º 25
0
		public void StepOut(IStackFrame frame) => dispatcher.UI(() => debugService.Value.StepOut(((StackFrame)frame).CorFrame));
Ejemplo n.º 26
0
 public void StepOver(IStackFrame frame) => dispatcher.UI(() => debugService.Value.StepOver(((StackFrame)frame).CorFrame));
Ejemplo n.º 27
0
		public bool StepOutWait(IStackFrame frame, int millisecondsTimeout) {
			StepOut(frame);
			return Wait(millisecondsTimeout);
		}
Ejemplo n.º 28
0
 public bool SetOffset(IStackFrame frame, uint offset) => dispatcher.UI(() => {
     string errMsg;
     return(debugService.Value.SetOffset(((StackFrame)frame).CorFrame, offset, out errMsg));
 });
Ejemplo n.º 29
0
		public bool RunTo(IStackFrame frame) => dispatcher.UI(() => debugService.Value.RunTo(((StackFrame)frame).CorFrame));
Ejemplo n.º 30
0
		public IDebuggerValue ReadStatic(IStackFrame frame, IDebuggerType type) {
			if (type != null)
				return type.ReadStaticField(frame, token);
			return debugger.Dispatcher.UI(() => {
				var v = field.ReadStatic(((StackFrame)frame).CorFrame);
				return v == null ? null : new DebuggerValue(debugger, v);
			});
		}
Ejemplo n.º 31
0
		public bool RunToWait(IStackFrame frame, int millisecondsTimeout) {
			RunTo(frame);
			return Wait(millisecondsTimeout);
		}
Ejemplo n.º 32
0
 public void StepOut(IStackFrame frame) => dispatcher.UI(() => debugManager.Value.StepOut(((StackFrame)frame).CorFrame));
Ejemplo n.º 33
0
		public bool SetNativeOffset(IStackFrame frame, uint offset) => dispatcher.UI(() => {
			string errMsg;
			return debugService.Value.SetNativeOffset(((StackFrame)frame).CorFrame, offset, out errMsg);
		});
Ejemplo n.º 34
0
 public Task <bool> StepOutAsync(IStackFrame frame, int millisecondsTimeout)
 {
     StepOut(frame);
     return(WaitAsync(millisecondsTimeout));
 }
Ejemplo n.º 35
0
 public bool StepOutWait(IStackFrame frame, int millisecondsTimeout)
 {
     StepOut(frame);
     return(Wait(millisecondsTimeout));
 }
Ejemplo n.º 36
0
 public bool StepOutWait(IStackFrame frame, CancellationToken token, int millisecondsTimeout)
 {
     StepOut(frame);
     return(Wait(token, millisecondsTimeout));
 }
Ejemplo n.º 37
0
		public bool InterceptCurrentException(IStackFrame frame) {
			return debugger.Dispatcher.UI(() => thread.CorThread.InterceptCurrentException(((StackFrame)frame).CorFrame));
		}
Ejemplo n.º 38
0
 public bool RunTo(IStackFrame frame) => dispatcher.UI(() => debugManager.Value.RunTo(((StackFrame)frame).CorFrame));
Ejemplo n.º 39
0
 public IDebuggerValue ReadStaticField(IStackFrame frame, IDebuggerField field)
 {
     return ReadStaticField(frame, field.Token);
 }
Ejemplo n.º 40
0
 public Task <bool> RunToAsync(IStackFrame frame, int millisecondsTimeout)
 {
     RunTo(frame);
     return(WaitAsync(millisecondsTimeout));
 }
Ejemplo n.º 41
0
 public void PopFrames(IStackFrame frame)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 42
0
 public bool InterceptCurrentException(IStackFrame frame) => debugger.Dispatcher.UI(() => thread.CorThread.InterceptCurrentException(((StackFrame)frame).CorFrame));