setVariableValue

Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.

Official doc

Note: this function uses an input class, and constructing this class manually may lead to incompatibilities if the class's constructor arguments change in the future. For maximum compatibility, it is advised to use the overload of this function that directly takes the mandatory parameters as arguments, and the optional ones from a configuration lambda.


suspend fun setVariableValue(scopeNumber: Int, variableName: String, newValue: CallArgument, callFrameId: CallFrameId): SetVariableValueResponse(source)

Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.

Official doc

Parameters

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.