Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 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));
     }
 }
Exemplo n.º 6
0
 public BreakpointHitEventArgs(NodeBreakpointBinding breakpoint, NodeThread thread)
 {
     _breakpointBinding = breakpoint;
     _thread            = thread;
 }
 public BreakpointBindingEventArgs(NodeBreakpoint breakpoint, NodeBreakpointBinding breakpointBinding)
 {
     this.Breakpoint        = breakpoint;
     this.BreakpointBinding = breakpointBinding;
 }
Exemplo n.º 8
0
 internal void RemoveBinding(NodeBreakpointBinding binding)
 {
     this._bindings.Remove(binding.BreakpointId);
 }
Exemplo n.º 9
0
 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;
 }
Exemplo n.º 12
0
 public BreakpointBindingEventArgs(NodeBreakpoint breakpoint, NodeBreakpointBinding breakpointBinding)
 {
     _breakpoint        = breakpoint;
     _breakpointBinding = breakpointBinding;
 }