Very basic support for watch expressions
You can currently only add them, not remoove them and you have to pass the expression in the function call, but once added the variable breakdown works nicely.
This commit is contained in:
parent
dd17f3f6f6
commit
533b2aa0d5
3 changed files with 56 additions and 5 deletions
|
|
@ -180,6 +180,9 @@ class DebugSession( object ):
|
|||
def ExpandVariable( self ):
|
||||
self._variablesView.ExpandVariable()
|
||||
|
||||
def AddWatch( self, expression ):
|
||||
self._variablesView.AddWatch( self._currentFrame, expression )
|
||||
|
||||
def GoToFrame( self ):
|
||||
self._stackTraceView.GoToFrame()
|
||||
|
||||
|
|
@ -221,6 +224,7 @@ class DebugSession( object ):
|
|||
self._currentFrame = frame
|
||||
self._codeView.SetCurrentFrame( frame )
|
||||
self._variablesView.LoadScopes( frame )
|
||||
self._variablesView.EvaluateWatches()
|
||||
|
||||
def _StartDebugAdapter( self ):
|
||||
self._logger.info( 'Starting debug adapter with: {0}'.format( json.dumps(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue