60 self.__isBroken = "" |
60 self.__isBroken = "" |
61 self.cFrame = None |
61 self.cFrame = None |
62 |
62 |
63 # current frame we are at |
63 # current frame we are at |
64 self.currentFrame = None |
64 self.currentFrame = None |
|
65 self.currentFrameLocals = None |
65 |
66 |
66 # frame that we are stepping in, can be different than currentFrame |
67 # frame that we are stepping in, can be different than currentFrame |
67 self.stepFrame = None |
68 self.stepFrame = None |
68 |
69 |
69 # provide a hook to perform a hard breakpoint |
70 # provide a hook to perform a hard breakpoint |
82 Public method to return the current frame. |
83 Public method to return the current frame. |
83 |
84 |
84 @return the current frame |
85 @return the current frame |
85 """ |
86 """ |
86 return self.currentFrame |
87 return self.currentFrame |
|
88 |
|
89 def getCurrentFrameLocals(self): |
|
90 """ |
|
91 Public method to return the locals dictionary of the current frame. |
|
92 |
|
93 @return locals dictionary of the current frame |
|
94 """ |
|
95 return self.currentFrameLocals |
87 |
96 |
88 def step(self, traceMode): |
97 def step(self, traceMode): |
89 """ |
98 """ |
90 Public method to perform a step operation in this thread. |
99 Public method to perform a step operation in this thread. |
91 |
100 |
525 if fn != self._dbgClient.getRunning(): |
534 if fn != self._dbgClient.getRunning(): |
526 return |
535 return |
527 self._dbgClient.mainFrame = frame |
536 self._dbgClient.mainFrame = frame |
528 |
537 |
529 self.currentFrame = frame |
538 self.currentFrame = frame |
|
539 self.currentFrameLocals = frame.f_locals |
|
540 # remember the locals because it is reinitialized when accessed |
530 |
541 |
531 fr = frame |
542 fr = frame |
532 stack = [] |
543 stack = [] |
533 while fr is not None: |
544 while fr is not None: |
534 # Reset the trace function so we can be sure |
545 # Reset the trace function so we can be sure |