bugger-v8-client
Version:
Client for v8 debug protocol
22 lines (20 loc) • 443 B
JavaScript
;
module.exports = function(DebugClient) {
DebugClient.prototype.setVariableValue =
function setVariableValue(name, newValue, ctx) {
var opts = {
name: name,
newValue: newValue,
scope: {
frameNumber: ctx.frame,
number: ctx.scope
}
};
return (
this._sendRequest('setVariableValue', opts)
.then(function() {
// no response expected
})
);
};
};