public void SetValue(ILocalVariable variable, IValue value) { LocalVariable localVariable = variable as LocalVariable; if (localVariable == null) { throw new VirtualMachineMismatchException(); } Value trueValue = value as Value; if (trueValue == null && value != null) { throw new VirtualMachineMismatchException(); } int[] slots = { localVariable.Slot }; Types.Value[] values = { Value.ToNetworkValue(trueValue) }; DebugErrorHandler.ThrowOnFailure(VirtualMachine.ProtocolService.SetValues(_thread.ThreadId, _frameId, slots, values)); }
public void SetValue(IField field, IValue value) { FieldId[] fields = { ((Field)field).FieldId }; Types.Value[] values = { Value.ToNetworkValue((Value)value) }; DebugErrorHandler.ThrowOnFailure(VirtualMachine.ProtocolService.SetObjectValues(ObjectId, fields, values)); }