setVariableValue

suspend fun setVariableValue(args: Debugger.SetVariableValueParameter, mode: CommandMode = CommandMode.DEFAULT)

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


suspend fun setVariableValue(scopeNumber: Int, variableName: String, newValue: Runtime.CallArgument, callFrameId: String)

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

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.