Lines Matching refs:frame

258     def sigint_handler(self, signum, frame):
263 self.set_trace(frame)
287 # The f_locals dictionary is updated from the actual frame
314 def user_call(self, frame, argument_list):
319 if self.stop_here(frame):
321 self.interaction(frame, None)
323 def user_line(self, frame):
326 if (self.mainpyfile != self.canonic(frame.f_code.co_filename)
327 or frame.f_lineno <= 0):
330 if self.bp_commands(frame):
331 self.interaction(frame, None)
333 def bp_commands(self, frame):
345 self.setup(frame, None)
357 def user_return(self, frame, return_value):
361 frame.f_locals['__return__'] = return_value
363 self.interaction(frame, None)
365 def user_exception(self, frame, exc_info):
371 frame.f_locals['__exception__'] = exc_type, exc_value
382 self.interaction(frame, exc_traceback)
411 def interaction(self, frame, traceback):
420 if self.setup(frame, traceback):
828 # to "no globals" if there is no current frame
829 frame = getattr(self, 'curframe', None)
830 globs = frame.f_globals if frame else None
995 Print a stack trace, with the most recent frame at the bottom.
996 An arrow indicates the "current frame", which determines the
1013 Move the current frame count (default one) levels up in the
1014 stack trace (to an older frame).
1017 self.error('Oldest frame')
1022 self.error('Invalid frame count (%s)' % arg)
1033 Move the current frame count (default one) levels down in the
1034 stack trace (to a newer frame).
1037 self.error('Newest frame')
1042 self.error('Invalid frame count (%s)' % arg)
1057 the current frame returns.
1144 the bottom-most frame. This lets you jump back and execute
1153 self.error('You can only jump within the bottom frame')
1246 def _getval_except(self, arg, frame=None):
1248 if frame is None:
1251 return eval(arg, frame.f_globals, frame.f_locals)
1297 The current line in the current frame is indicated by "->".
1346 List the whole source code for the current function or frame.
1375 def _print_lines(self, lines, start, breaks=(), frame=None):
1377 if frame:
1378 current_lineno = frame.f_lineno
1379 exc_lineno = self.tb_lineno.get(frame, -1)
1435 stops in the current frame.
1437 Without expression, list all display expressions for the current frame.
1453 Do not display the expression any more in the current frame.
1455 Without expression, clear all display expressions for the current frame.
1529 # Print a traceback starting at the top stack frame.
1530 # The most recently entered frame is printed last;
1535 # and down moves towards the most recent stack frame).
1545 frame, lineno = frame_lineno
1546 if frame is self.curframe:
1587 stack frame. The exclamation point can be omitted unless the
1649 # module-level frame which breaks our code print line number