public bool GetIsVisible(IStackFrame frame) { Contract.Requires<ArgumentNullException>(frame != null, "frame"); Contract.Requires<VirtualMachineMismatchException>(this.GetVirtualMachine().Equals(frame.GetVirtualMachine())); throw new NotImplementedException(); }
public LocalsWindow(IDebuggerSession session, IExecutionProvider executionProvider) { this.session = session; this.executionProvider = executionProvider; this.executionProvider.Suspended += (thread) => { QueueUserWorkItem (() => pendingFrame = thread.GetFrames ().FirstOrDefault()); }; }
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; }
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); }
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); }); }
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)); });
public IDebuggerValue ReadStaticField(IStackFrame frame, IDebuggerField field) => ReadStaticField(frame, field.Token);
public Task<bool> RunToAsync(IStackFrame frame, int millisecondsTimeout) { RunTo(frame); return WaitAsync(millisecondsTimeout); }
public bool RunToWait(IStackFrame frame, CancellationToken token, int millisecondsTimeout) { RunTo(frame); return Wait(token, millisecondsTimeout); }
public Task<bool> StepOutAsync(IStackFrame frame, int millisecondsTimeout) { StepOut(frame); return WaitAsync(millisecondsTimeout); }
public bool StepOutWait(IStackFrame frame, CancellationToken token, int millisecondsTimeout) { StepOut(frame); return Wait(token, millisecondsTimeout); }
public bool RunToWait(IStackFrame frame, int millisecondsTimeout) { RunTo(frame); return(Wait(millisecondsTimeout)); }
public bool SetNativeOffset(IStackFrame frame, int offset) => dispatcher.UI(() => { string errMsg; return(debugManager.Value.SetNativeOffset(((StackFrame)frame).CorFrame, (uint)offset, out errMsg)); });
public bool SetNativeOffset(IStackFrame frame, int offset) { return dispatcher.UI(() => { string errMsg; return debugManager.Value.SetNativeOffset(((StackFrame)frame).CorFrame, (uint)offset, out errMsg); }); }
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); }); }
public bool RunTo(IStackFrame frame) { return dispatcher.UI(() => debugManager.Value.RunTo(((StackFrame)frame).CorFrame)); }
public void StepOut(IStackFrame frame) { dispatcher.UI(() => debugManager.Value.StepOut(((StackFrame)frame).CorFrame)); }
public IDebuggerValue ReadStaticField(IStackFrame frame, IDebuggerField field) { return(ReadStaticField(frame, field.Token)); }
private static int?GetFileColumnNumber(IStackFrame frame) { return(frame.GetFileColumnNumber()); }
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)); }
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 }); }
public bool RunToWait(IStackFrame frame, CancellationToken token, int millisecondsTimeout) { RunTo(frame); return(Wait(token, millisecondsTimeout)); }
protected override IProperty CreateProperty(IStackFrame frame, VariableInfo info) { return(new ILProperty(engine, ((AD7StackFrame)frame).Thread, info, (AD7StackFrame)frame)); }
public void StepOut(IStackFrame frame) => dispatcher.UI(() => debugService.Value.StepOut(((StackFrame)frame).CorFrame));
public void StepOver(IStackFrame frame) => dispatcher.UI(() => debugService.Value.StepOver(((StackFrame)frame).CorFrame));
public bool StepOutWait(IStackFrame frame, int millisecondsTimeout) { StepOut(frame); return Wait(millisecondsTimeout); }
public bool SetOffset(IStackFrame frame, uint offset) => dispatcher.UI(() => { string errMsg; return(debugService.Value.SetOffset(((StackFrame)frame).CorFrame, offset, out errMsg)); });
public bool RunTo(IStackFrame frame) => dispatcher.UI(() => debugService.Value.RunTo(((StackFrame)frame).CorFrame));
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); }); }
public bool RunToWait(IStackFrame frame, int millisecondsTimeout) { RunTo(frame); return Wait(millisecondsTimeout); }
public void StepOut(IStackFrame frame) => dispatcher.UI(() => debugManager.Value.StepOut(((StackFrame)frame).CorFrame));
public bool SetNativeOffset(IStackFrame frame, uint offset) => dispatcher.UI(() => { string errMsg; return debugService.Value.SetNativeOffset(((StackFrame)frame).CorFrame, offset, out errMsg); });
public Task <bool> StepOutAsync(IStackFrame frame, int millisecondsTimeout) { StepOut(frame); return(WaitAsync(millisecondsTimeout)); }
public bool StepOutWait(IStackFrame frame, int millisecondsTimeout) { StepOut(frame); return(Wait(millisecondsTimeout)); }
public bool StepOutWait(IStackFrame frame, CancellationToken token, int millisecondsTimeout) { StepOut(frame); return(Wait(token, millisecondsTimeout)); }
public bool InterceptCurrentException(IStackFrame frame) { return debugger.Dispatcher.UI(() => thread.CorThread.InterceptCurrentException(((StackFrame)frame).CorFrame)); }
public bool RunTo(IStackFrame frame) => dispatcher.UI(() => debugManager.Value.RunTo(((StackFrame)frame).CorFrame));
public IDebuggerValue ReadStaticField(IStackFrame frame, IDebuggerField field) { return ReadStaticField(frame, field.Token); }
public Task <bool> RunToAsync(IStackFrame frame, int millisecondsTimeout) { RunTo(frame); return(WaitAsync(millisecondsTimeout)); }
public void PopFrames(IStackFrame frame) { throw new NotImplementedException(); }
public bool InterceptCurrentException(IStackFrame frame) => debugger.Dispatcher.UI(() => thread.CorThread.InterceptCurrentException(((StackFrame)frame).CorFrame));