Support setting from the balloon

This commit is contained in:
Ben Jackson 2021-02-24 17:23:30 +00:00
commit c2082cffae
3 changed files with 12 additions and 9 deletions

View file

@ -526,9 +526,8 @@ class DebugSession( object ):
self._variablesView.ExpandVariable( buf, line_num )
@IfConnected()
def SetVariableValue( self ):
# TODO: , buf = None, line_num = None ):
self._variablesView.SetVariableValue()
def SetVariableValue( self, buf = None, line_num = None ):
self._variablesView.SetVariableValue( buf, line_num )
@IfConnected()
def AddWatch( self, expression ):

View file

@ -515,11 +515,11 @@ class VariablesView( object ):
},
} )
def SetVariableValue( self ):
def SetVariableValue( self, buf = None, line_num = None ):
variable: Variable
view: View
variable, view = self._GetVariable( buf = None, line_num = None )
variable, view = self._GetVariable( buf, line_num )
if variable is None:
return