(frame, scope_index, name, value)
| 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]; |
no test coverage detected