diff -r d8a11b6a7d49 -r f6bc16bd4198 DebugClients/Python3/DebugBase.py --- a/DebugClients/Python3/DebugBase.py Fri Mar 04 18:28:04 2011 +0100 +++ b/DebugClients/Python3/DebugBase.py Thu Mar 10 10:29:12 2011 +0100 @@ -61,6 +61,7 @@ # current frame we are at self.currentFrame = None + self.currentFrameLocals = None # frame that we are stepping in, can be different than currentFrame self.stepFrame = None @@ -84,6 +85,14 @@ """ return self.currentFrame + def getCurrentFrameLocals(self): + """ + Public method to return the locals dictionary of the current frame. + + @return locals dictionary of the current frame + """ + return self.currentFrameLocals + def step(self, traceMode): """ Public method to perform a step operation in this thread. @@ -536,6 +545,8 @@ self._dbgClient.mainFrame = frame self.currentFrame = frame + self.currentFrameLocals = frame.f_locals + # remember the locals because it is reinitialized when accessed fr = frame stack = []