setVariableValue method
Future<void>
setVariableValue(
- int scopeNumber,
- String variableName,
- CallArgument newValue,
- CallFrameId callFrameId,
Changes value of variable in a callframe. Object-based scopes are not supported and must be
mutated manually.
scopeNumber
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
Variable name.
newValue
New variable value.
callFrameId
Id of callframe that holds variable.
Implementation
Future<void> setVariableValue(int scopeNumber, String variableName,
runtime.CallArgument newValue, CallFrameId callFrameId) async {
await _client.send('Debugger.setVariableValue', {
'scopeNumber': scopeNumber,
'variableName': variableName,
'newValue': newValue,
'callFrameId': callFrameId,
});
}