Debugger.setVariableValueChanges value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.
| Name | Type | Description |
|---|---|---|
scopeNumber | integer | 0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other scopes could be manipulated manually. |
variableName | string | Variable name. |
newValue | Runtime.CallArgument | New variable value. |
callFrameId | CallFrameId | Id of callframe that holds variable. |
{
"id": 1,
"method": "Debugger.setVariableValue",
"params": {
"scopeNumber": 1,
"variableName": "variableName-value",
"newValue": "newValue-value",
"callFrameId": "0"
}
}
{
"id": 1,
"result": {}
}
const result = await send('Debugger.setVariableValue', {"scopeNumber": 1, "variableName": "variableName-value", "newValue": "newValue-value", "callFrameId": "0"});
console.log(result);