MCPcopy Index your code
hub / github.com/nodejs/node / setVariableValue

Method setVariableValue

deps/v8/test/debugger/test-api.js:364–378  ·  view source on GitHub ↗
(frame, scope_index, name, value)

Source from the content-addressed store, hash-verified

362 }
363
364 setVariableValue(frame, scope_index, name, value) {
365 const frameid = frame.callFrameId;
366 const {msgid, msg} = this.createMessage(
367 "Debugger.setVariableValue",
368 { callFrameId : frameid,
369 scopeNumber : scope_index,
370 variableName : name,
371 newValue : { value : value }
372 });
373 this.sendMessage(msg);
374 const reply = this.takeReplyChecked(msgid);
375 if (reply.error) {
376 throw new Error("Failed to set variable '" + name + "' value");
377 }
378 }
379
380 execStateScope(frame, scope_index) {
381 const scope = frame.scopeChain[scope_index];

Callers 11

execStateScopeMethod · 0.95
listener_delegateFunction · 0.80
listenerFunction · 0.80
listener_delegateFunction · 0.80
listenerFunction · 0.80
listenerSetJToResultFunction · 0.80
listenerSetJToObjectFunction · 0.80

Calls 3

createMessageMethod · 0.95
sendMessageMethod · 0.95
takeReplyCheckedMethod · 0.95

Tested by

no test coverage detected