internal NodeBreakpointBinding CreateBinding(FilePosition target, FilePosition position, int breakpointId, int?scriptId, bool fullyBound) { var binding = new NodeBreakpointBinding(this, target, position, breakpointId, scriptId, fullyBound); this._bindings[breakpointId] = binding; return(binding); }
public BreakpointHitEventArgs(NodeBreakpointBinding breakpoint, NodeThread thread) { _breakpointBinding = breakpoint; _thread = thread; }
public BreakpointBindingEventArgs(NodeBreakpoint breakpoint, NodeBreakpointBinding breakpointBinding) { _breakpoint = breakpoint; _breakpointBinding = breakpointBinding; }
internal async Task RemoveBreakpointAsync(NodeBreakpointBinding breakpointBinding, CancellationToken cancellationToken = new CancellationToken()) { DebugWriteCommand("Remove Breakpoint"); // Perform remove idempotently, as remove may be called in response to BreakpointUnound event if (breakpointBinding.Unbound) { return; } int breakpointId = breakpointBinding.BreakpointId; if (_connection.Connected) { var clearBreakpointsCommand = new ClearBreakpointCommand(CommandId, breakpointId); await TrySendRequestAsync(clearBreakpointsCommand, cancellationToken).ConfigureAwait(false); } NodeBreakpoint breakpoint = breakpointBinding.Breakpoint; _breakpointBindings.Remove(breakpointId); breakpoint.RemoveBinding(breakpointBinding); breakpointBinding.Unbound = true; EventHandler<BreakpointBindingEventArgs> breakpointUnbound = BreakpointUnbound; if (breakpointUnbound != null) { breakpointUnbound(this, new BreakpointBindingEventArgs(breakpoint, breakpointBinding)); } }
private void HandleBindBreakpointSuccess(NodeBreakpointBinding breakpointBinding, NodeBreakpoint breakpoint) { EventHandler<BreakpointBindingEventArgs> breakpointBound = BreakpointBound; if (breakpointBound != null) { breakpointBound(this, new BreakpointBindingEventArgs(breakpoint, breakpointBinding)); } }
public BreakpointHitEventArgs(NodeBreakpointBinding breakpoint, NodeThread thread) { _breakpointBinding = breakpoint; _thread = thread; }
public BreakpointBindingEventArgs(NodeBreakpoint breakpoint, NodeBreakpointBinding breakpointBinding) { this.Breakpoint = breakpoint; this.BreakpointBinding = breakpointBinding; }
internal void RemoveBinding(NodeBreakpointBinding binding) { this._bindings.Remove(binding.BreakpointId); }
public BreakpointHitEventArgs(NodeBreakpointBinding breakpoint, NodeThread thread) { this.BreakpointBinding = breakpoint; this.Thread = thread; }
internal void RemoveBinding(NodeBreakpointBinding binding) { _bindings.Remove(binding.BreakpointId); }
internal NodeBreakpointBinding CreateBinding(FilePosition target, FilePosition position, int breakpointId, int? scriptId, bool fullyBound) { var binding = new NodeBreakpointBinding(this, target, position, breakpointId, scriptId, fullyBound); _bindings[breakpointId] = binding; return binding; }
public BreakpointBindingEventArgs(NodeBreakpoint breakpoint, NodeBreakpointBinding breakpointBinding) { _breakpoint = breakpoint; _breakpointBinding = breakpointBinding; }